Skip to main content

CalendarSelectionMode Enum

Definition​

Assembly:Avalonia.Controls
Package:Avalonia

Specifies values that describe the available selection modes for a Avalonia.Controls.Calendar.

public enum CalendarSelectionMode

Inheritance: Enum -> CalendarSelectionMode

Remarks​

This enumeration provides the values that are used by the SelectionMode property.

Fields​

NameDescription
MultipleRangeMultiple non-contiguous ranges of dates can be selected. Use the Avalonia.Controls.Calendar.SelectedDates property to retrieve the selected dates.
NoneNo selections are allowed.
SingleDateOnly a single date can be selected. Use the Avalonia.Controls.Calendar.SelectedDate property to retrieve the selected date.
SingleRangeA single range of dates can be selected. Use Avalonia.Controls.Calendar.SelectedDates property to retrieve the selected dates.

MultipleRange Field​

Multiple non-contiguous ranges of dates can be selected. Use the Avalonia.Controls.Calendar.SelectedDates property to retrieve the selected dates.

public Avalonia.Controls.CalendarSelectionMode MultipleRange

None Field​

No selections are allowed.

public Avalonia.Controls.CalendarSelectionMode None

SingleDate Field​

Only a single date can be selected. Use the Avalonia.Controls.Calendar.SelectedDate property to retrieve the selected date.

public Avalonia.Controls.CalendarSelectionMode SingleDate

SingleRange Field​

A single range of dates can be selected. Use Avalonia.Controls.Calendar.SelectedDates property to retrieve the selected dates.

public Avalonia.Controls.CalendarSelectionMode SingleRange