Date Picker
A date field that opens a calendar under it.
Installation
bash
shellui-native add date-picker
Platforms: MAUI · Avalonia. Also installs icon, calendar.
Usage
Basic
<ui:DatePicker Date="{Binding DueDate}" Format="MMMM d, yyyy" /><ui:DatePicker Date="{Binding DueDate}" Format="MMMM d, yyyy" />Not available on yet
MAUI and Avalonia
DateChanged passes DateChangedEventArgs on MAUI and the new DateTime on Avalonia.
API
| Property | Type | Default | Description |
|---|---|---|---|
Date |
DateTime |
Today | Selected date. Two-way bindable. |
MinimumDate |
DateTime? |
null |
Earliest selectable date; null for no limit. |
MaximumDate |
DateTime? |
null |
Latest selectable date; null for no limit. |
Format |
string |
"MMMM d, yyyy" |
.NET date format string for the trigger text. |
| Event | Arguments | Description |
|---|---|---|
DateChanged |
DateChangedEventArgs (MAUI) · DateTime (Avalonia) |
User input only: setting Date from code or a binding doesn't raise it. |
| Method | Description |
|---|---|
SetOpen(bool open) |
Opens or closes it. |
Close() |
Closes it. |