Calendar.

BlackoutDates Property

Summary

Gets a collection of dates that are marked as not selectable.
Namespace
Avalonia.Controls
Containing Type
Calendar

Syntax

public CalendarBlackoutDatesCollection BlackoutDates { get; private set; }

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.

Value

Type Description
CalendarBlackoutDatesCollection A collection of dates that cannot be selected. The default value is an empty collection.