Xceed Toolkit for Maui v2.0 Documentation
SelectedDate Property


Xceed.Maui.Toolkit Assembly > Xceed.Maui.Toolkit Namespace > Calendar Class : SelectedDate Property
Gets or sets a specific date in the Calendar.
Syntax
'Declaration
 
<TypeConverterAttribute(Xceed.Maui.Toolkit.DateOnlyTypeConverter)>
Public Property SelectedDate As Nullable(Of DateOnly)
'Usage
 
Dim instance As Calendar
Dim value As Nullable(Of DateOnly)
 
instance.SelectedDate = value
 
value = instance.SelectedDate
[TypeConverter(Xceed.Maui.Toolkit.DateOnlyTypeConverter)]
public Nullable<DateOnly> SelectedDate {get; set;}
Remarks

The CalendarSelectionMode can affect this property:

- When CalendarSelectionMode is set to None, the SelectedDate will be null.

- When CalendarSelectionMode is set to Single or Multiple, the SelectedDate will be the last date that was selected.

- When CalendarSelectionMode is set to Range or MultiRange, the SelectedDate will be the first date found in the first CalendarDateRange.

Note that clicking on a SelectedDate in the Calendar will unselect that date.

Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Calendar Class
Calendar Members