Calendar
The Calendar
control is a standard Calendar control for users to select date(s) or date ranges.
Common Properties
Property | Description |
---|---|
| Gets or sets a value that indicates what kind of selections are allowed. |
| Gets or sets a value indicating whether the calendar is displayed in months, years, or decades. |
| Gets or sets the currently selected date. |
| Gets a collection of selected dates. |
| Gets or sets the date to display. |
| Gets or sets the first date to be displayed. |
| Gets or sets the last date to be displayed. |
| Gets a collection of dates that are marked as not selectable. |
Reference
Source code
Examples
Basic Calendar
Range selection Calendar
After selecting the start date, a single range can be selected by holding the shift key and clicking on the end date.
Calendar with custom start and end dates
With this code to set the start and end dates:
最后更新于