DisplayDateStart Property

DatePicker.DisplayDateStart Property


Gets or sets the first date to be displayed.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public Nullable<DateTime> DisplayDateStart { get; set; }

Property Value

Type: System.Nullable<DateTime>

The first date to display.

This property affects the Calendar of the DatePicker. For more information, see the Calendar.DisplayDateStart property.

<DatePicker DisplayDateStart="dateTimeString"/>


A date that is in one of the formats that are listed in the DateTime XAML Syntax topic.

Legacy Code Example

The following example creates a DatePicker that limits the drop-down calendar to display dates only in the year 2009.

Code snippet is not found. Confirm that the code snippet name 'DatePickerSnippets' is correct.

.NET Framework
Available since 4.0
Available since 2.0
Return to top
© 2015 Microsoft