Expander.IsExpanded 屬性

定義

取得或設定是否能看見 Expander 內容視窗。

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

屬性值

Boolean

如果已展開內容視窗,則為 true,否則為 false。 預設為 false

屬性

範例

下列範例會示範如何設定 IsExpanded 屬性。

myExpanderIsExpanded.IsExpanded = true;
myExpanderIsExpanded.IsExpanded = True
<Expander Name ="myExpanderIsExpanded" IsExpanded="True"  
          Header ="expanderTitle" Content="expanderContent"/>

備註

相依性屬性資訊

識別碼欄位 IsExpandedProperty
設定為 的中繼資料屬性 true BindsTwoWayByDefault, Journal

適用於