CalendarDatePicker
This is an extension of the calendar control that includes a text box and button. The calendar shows when the user clicks the button (and hides on a subsequent click). The selected date shows in the text box when a date on the calendar is clicked.
The user can also enter a date by typing in the text box. The date picker is able to process multiple date formats into the format that is displayed as a watermark when there is no selected date.
info
For details on the calendar part of this control, see here.
Example
This example shows a basic single date selection calendar when the button is clicked:
- XAML
<UserControl xmlns="https://github.com/avaloniaui" Padding="20"> <StackPanel Margin="20"> <CalendarDatePicker /> </StackPanel> </UserControl>
Preview
Loading Avalonia Preview...
More Information
info
For the complete API documentation about this control, see here.
info
View the source code on GitHub CalendarDatePicker.cs
Have questions or feedback? Join the conversation below.