.NET Framework (current version)
Gets or sets the first date that is available in the calendar.
PresentationFramework (in PresentationFramework.dll)
member DisplayDateStart : Nullable<DateTime> with get, set
The first date that is available in the calendar. The default is
You can restrict the range of a Calendar by setting the
and DisplayDateStart properties. A user cannot scroll to or select dates outside of this range. If you set the DisplayDateEnd property to a date that is before SelectedDate , DisplayDateStart is set to the same value as DisplayDateStart . SelectedDate
A date that is in one of the formats that are listed in the
DateTime XAML Syntax topic.
The following code sets up a
Calendar with a particular range of displayable dates, and sets the currently selected and displayed date.
No code example is currently available or this language may not be supported.
<!-- Create a Calendar that displays 1/10/2009
through 4/18/2009. -->
< Calendar Margin = " 20 "
SelectedDate = " 2/15/2009 "
DisplayDate = " 3/15/2009 "
DisplayDateStart = " 1/10/2009 "
DisplayDateEnd = " 4/18/2009 " />
.NET Framework Available since 4.0 Silverlight Available since 2.0 Return to top