Calendar.

DisplayDate Property

Summary

Gets or sets the date to display.
Namespace
Avalonia.Controls
Containing Type
Calendar

Syntax

public DateTime DisplayDate { get; set; }

Remarks

This property allows the developer to specify a date to display. If this property is a null reference (Nothing in Visual Basic), SelectedDate is displayed. If SelectedDate is also a null reference (Nothing in Visual Basic), Today is displayed. The default is Today.

To set this property in XAML, use a date specified in the format yyyy/mm/dd. The mm and dd components must always consist of two characters, with a leading zero if necessary. For instance, the month of May should be specified as 05.

Value

Type Description
DateTime The date to display.