BlackoutDates Property
Gets a collection of dates that are marked as not selectable.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public CalendarBlackoutDatesCollection BlackoutDates { get; }
Public ReadOnly Property BlackoutDates As CalendarBlackoutDatesCollection
Get
member BlackoutDates : CalendarBlackoutDatesCollection with get
Property Value
CalendarBlackoutDatesCollection
A collection of dates that cannot be selected. The default value is an empty collection.
Remarks
Dates in this collection will appear as disabled on the calendar.
To make all past dates not selectable, you can use the AddDatesInPast method provided by the collection returned by this property.
Exceptions
ArgumentOutOfRangeException | Adding a date to this collection when it is already selected or adding a date outside the range specified by DisplayDateStart and DisplayDateEnd. |