Editar

Partilhar via


DatePicker.IsDropDownOpen Property

Definition

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

Item Value
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"/>

Applies to