[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets or sets the currently selected date.
Assembly: PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
The following example creates a Calendar with a particular range of displayable dates, and sets the currently selected and displayed date.
' Create a Calendar that displays 1/10/2009 ' through 4/18/2009. Dim basicCalendar As New Calendar() basicCalendar.DisplayDateStart = New DateTime(2009, 1, 10) basicCalendar.DisplayDateEnd = New DateTime(2009, 4, 18) basicCalendar.DisplayDate = New DateTime(2009, 3, 15) basicCalendar.SelectedDate = New DateTime(2009, 2, 15) ' root is a Panel that is defined elswhere. root.Children.Add(basicCalendar)
Windows 8 Consumer Preview, Windows Server 8 Beta, Windows 7, Windows Server 2008 SP2, Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)