Gets a collection of selected dates.
Assembly: PresentationFramework (in PresentationFramework.dll)
Dates can be added to the collection either individually or in a range using the AddRange method. Depending on the value of the SelectionMode property, adding a date or range to the collection may cause it to be cleared. The following table lists how CalendarSelectionMode affects the property.
No selections are allowed. SelectedDate cannot be set and no values can be added to .
Multiple non-contiguous ranges of dates can be selected. Adding a date individually to AddRange will not clear . Setting SelectedDate will still clear , but additional dates or ranges can then be added. Adding a range that includes some dates that are already selected or overlaps with another range results in the union of the ranges and does not cause an exception.or using
Available since 4.0
Available since 2.0