Skip to main content

SelectionMode Property

Gets or sets a value that indicates what kind of selections are allowed.

Definition​

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

public CalendarSelectionMode SelectionMode { get; set; }

Property Value​

CalendarSelectionMode
A value that indicates the current selection mode. The default is SingleDate.

Remarks​

This property determines whether the Calendar allows no selection, selection of a single date, or selection of multiple dates. The selection mode is specified with the CalendarSelectionMode enumeration.

When this property is changed, all selected dates will be cleared.

See Also​

Reference​

Calendar Class
Avalonia.Controls Namespace