Skip to main content

SelectedDate Property

Gets or sets the currently selected date.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public DateTime? SelectedDate { get; set; }

Property Value

Nullable(DateTime)
The date currently selected. The default is null.

Exceptions

ArgumentOutOfRangeExceptionThe specified date is not in the range defined by DisplayDateStart and DisplayDateEnd, or the specified date is in the BlackoutDates collection.

See Also

Reference

CalendarDatePicker Class
Avalonia.Controls Namespace