The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Calendar.DisplayDateEnd Property

Gets or sets the last date to be displayed.

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

public Nullable<DateTime> DisplayDateEnd { get; set; }
<sdk:Calendar DisplayDateEnd="dateTimeString"/>

XAML Values


A date specified in the format yyyy/mm/dd. The mm and dd components must always consist of two characters, with a leading zero if necessary. For instance, the month of May should be specified as 05.

Property Value

Type: System.Nullable<DateTime>
The last date to display.

Dependency property identifier field: DisplayDateEndProperty

The following code sets up a Calendar with a particular range of displayable dates, and sets the currently selected and displayed date. This example is part of a larger example available in the Calendar overview.

//Sets a Calendar to display a range of dates from 1/10/2009 to 
//4/18/2009.  2/15/2009 is selected, but 3/2009 is initially 
cal.SelectedDate = new DateTime(2009, 2, 15);
cal.DisplayDate = new DateTime(2009, 3, 15); //if DisplayDate is not set, the Calendar displays
//the SelectedDate.
cal.DisplayDateStart = new DateTime(2009, 1, 10);
cal.DisplayDateEnd = new DateTime(2009, 4, 18);


Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft