Calendar

Note: You can check the Avalonia docs for the Calendararrow-up-right and Calendar APIarrow-up-right if you need more information.

For Avalonia.FuncUI's DSL properties you can check Calendar.fsarrow-up-right

The Calendar control is a standard Calendar control for users to select date(s) or date ranges.

Usage

Set a Date

If no calendar date is set, it will default to today's date.

Calendar.create [
  Calendar.selectedDate DateTime.Today
]

Select Multiple Dates

For more information about selection modes you can see the SelectionModes APIarrow-up-right but more verbosely you can look at the ListBox Selection Modesarrow-up-right for a better description of what they do.

Calendar.create [
  Calendar.selectionMode SelectionMode.Multiple
]

Select Calendar Month First

You can change the CalendarModearrow-up-right so that you can select the year first with CalendarMode.Decade, the month first with CalendarMode.Year, or have the standard (default) format with CalendarMode.Month.jok

Calendar.create [
  Calendar.displayMode CalendarMode.Decade
]

Display Only the Upcoming Week

Last updated