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


Metadata properties set to true


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.

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