ComboBox.IsDropDownOpen 屬性

定義

取得或設定下拉式方塊的下拉清單目前是否開啟的值。

public:
 property bool IsDropDownOpen { bool get(); void set(bool value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.Browsable(false)]
public bool IsDropDownOpen { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.Browsable(false)>]
member this.IsDropDownOpen : bool with get, set
Public Property IsDropDownOpen As Boolean

屬性值

Boolean

如果下拉式清單已開啟,則為 true,否則為 false。 預設為 false

屬性

範例

下列範例示範如何使用 IsDropDownOpen 屬性建立下拉式方塊,並開啟下拉式方塊起始下拉式方塊。

<Setter Property = "IsDropDownOpen" Value="true"/>

備註

相依性屬性資訊

識別碼欄位 IsDropDownOpenProperty
中繼資料屬性設定為 true BindsTwoWayByDefault

適用於