DatePicker.IsDropDownOpen Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets a value that indicates whether the drop-down Calendar is open or closed.

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

member IsDropDownOpen : bool with get, set

Property Value

Type: System.Boolean

true if the Calendar is open; otherwise, false. The default is false.

Identifier field

IsDropDownOpenProperty

Metadata properties set to true

BindsTwoWayByDefault

Setting this property will cause the Calendar drop-down to open or close.

<DatePicker IsDropDownOpen="bool"/>

The following example creates a DatePicker that is initialized with its calendar open and displays July 7, 2009.

<DatePicker IsDropDownOpen="True"
            IsTodayHighlighted="False" 
            DisplayDate="7/7/09"/>

.NET Framework
Available since 4.0
Silverlight
Available since 2.0
Return to top
Show: