Class CalendarView
public class CalendarView : ContentView, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, ILayout, ILayoutController, IVisualTreeElement, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
- Inheritance
-
CalendarView
- Implements
- Inherited Members
- Extension Methods
Constructors
CalendarView()
public CalendarView()
Fields
DisplayDateProperty
public static readonly BindableProperty DisplayDateProperty
Field Value
FirstDayOfWeekProperty
public static readonly BindableProperty FirstDayOfWeekProperty
Field Value
MaximumDateProperty
public static readonly BindableProperty MaximumDateProperty
Field Value
MinimumDateProperty
public static readonly BindableProperty MinimumDateProperty
Field Value
SelectedDateProperty
public static readonly BindableProperty SelectedDateProperty
Field Value
Properties
DisplayDate
public DateTime DisplayDate { get; set; }
Property Value
FirstDayOfWeek
public DayOfWeek FirstDayOfWeek { get; set; }
Property Value
MaximumDate
public DateTime? MaximumDate { get; set; }
Property Value
MinimumDate
public DateTime? MinimumDate { get; set; }
Property Value
NextMonthCommand
public ICommand NextMonthCommand { get; }
Property Value
PreviousMonthCommand
public ICommand PreviousMonthCommand { get; }
Property Value
SelectedDate
public DateTime? SelectedDate { get; set; }
Property Value
VisibleDates
public IReadOnlyList<CalendarDay> VisibleDates { get; }
Property Value
Methods
BuildLayout()
protected virtual void BuildLayout()
BuildVisibleDates()
protected IReadOnlyList<CalendarDay> BuildVisibleDates()
Returns
ClearSelection()
public void ClearSelection()
IsDateEnabled(DateTime)
protected virtual bool IsDateEnabled(DateTime date)
Parameters
dateDateTime
Returns
OnSelectedDateChanged(DateTime?)
protected virtual void OnSelectedDateChanged(DateTime? selectedDate)
Parameters
selectedDateDateTime?
OnSizeAllocated(double, double)
Method that is called when the size of the element is set during a layout cycle. Implement this method to add class handling for this event.
protected override void OnSizeAllocated(double width, double height)
Parameters
TrySelectDate(DateTime)
public bool TrySelectDate(DateTime date)
Parameters
dateDateTime
Returns
UpdateCalendar()
protected virtual void UpdateCalendar()
Events
DateSelected
public event EventHandler<CalendarDateSelectedEventArgs> DateSelected