Class CalendarDatePicker
Represents a control that allows a user to pick a date from a calendar display.
public class CalendarDatePicker : Button, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, ICommandSource, IAppearanceControl, IIconControl
- Inheritance
-
CalendarDatePicker
- Implements
- Inherited Members
Examples
<ui:CalendarDatePicker />
Fields
DateProperty
Identifies the Date dependency property.
public static readonly DependencyProperty DateProperty
Field Value
FirstDayOfWeekProperty
Identifies the FirstDayOfWeek dependency property.
public static readonly DependencyProperty FirstDayOfWeekProperty
Field Value
IsCalendarOpenProperty
Identifies the IsCalendarOpen dependency property.
public static readonly DependencyProperty IsCalendarOpenProperty
Field Value
IsTodayHighlightedProperty
Identifies the IsTodayHighlighted dependency property.
public static readonly DependencyProperty IsTodayHighlightedProperty
Field Value
Properties
Date
Gets or sets the date currently set in the calendar picker.
[Bindable(true)]
public DateTime? Date { get; set; }
Property Value
FirstDayOfWeek
Gets or sets the day that is considered the beginning of the week.
public DayOfWeek FirstDayOfWeek { get; set; }
Property Value
IsCalendarOpen
Gets or sets a value indicating whether the calendar view of the CalendarDatePicker is currently shown.
[Bindable(true)]
public bool IsCalendarOpen { get; set; }
Property Value
IsTodayHighlighted
Gets or sets a value indicating whether the current date is highlighted.
public bool IsTodayHighlighted { get; set; }
Property Value
Methods
OnClick()
Called when a Button is clicked.
protected override void OnClick()
OnPopupOpened(object?, EventArgs)
protected virtual void OnPopupOpened(object? sender, EventArgs e)
Parameters
OnSelectedDatesChanged(object?, SelectionChangedEventArgs)
protected virtual void OnSelectedDatesChanged(object? sender, SelectionChangedEventArgs e)
Parameters
sender
objecte
SelectionChangedEventArgs