Expander.ExpandDirection 屬性

定義

取得或設定 Expander 內容視窗開啟的方向。

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

屬性值

用來定義內容視窗開啟方向的其中一個 ExpandDirection 值。 預設為 Down

屬性

範例

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

myExpanderOpensUp.ExpandDirection = ExpandDirection.Up;
myExpanderOpensUp.ExpandDirection = ExpandDirection.Up
<Expander Name ="myExpanderOpensUp" ExpandDirection="Up" 
          Header ="expanderTitle" Content="expanderContent"/>

備註

相依性屬性資訊

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

適用於

另請參閱