Skip to main content

Text Property

Gets or sets the text that is displayed by the CalendarDatePicker.

Definition

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

public string? Text { get; set; }

Property Value

String
The text displayed by the CalendarDatePicker.

Exceptions

FormatExceptionThe text entered cannot be parsed to a valid date, and the exception is not suppressed.
ArgumentOutOfRangeExceptionThe text entered parses to a date that is not selectable.

See Also

Reference

CalendarDatePicker Class
Avalonia.Controls Namespace