IsDropDownOpen Property

DatePicker.IsDropDownOpen Property

 

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)

public bool IsDropDownOpen { 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:
© 2016 Microsoft