DisplayDateEnd Property

DatePicker.DisplayDateEnd Property


Gets or sets the last date to be displayed.

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

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

Property Value

Type: System.Nullable<DateTime>

The last date to display.

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

<DatePicker DisplayDateEnd="dateTimeString"/>


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

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

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