DatePicker.IsDropDownOpen Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that indicates whether the drop-down Calendar is open or closed.
public:
property bool IsDropDownOpen { bool get(); void set(bool value); };
public bool IsDropDownOpen { get; set; }
member this.IsDropDownOpen : bool with get, set
Public Property IsDropDownOpen As Boolean
Property Value
true
if the Calendar is open; otherwise, false
. The default is false
.
Examples
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"/>
Remarks
Dependency Property Information
Identifier field | IsDropDownOpenProperty |
Metadata properties set to true |
BindsTwoWayByDefault |
Setting this property will cause the Calendar drop-down to open or close.
XAML Attribute Usage
<DatePicker IsDropDownOpen="bool"/>