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

ExpandDirection 值之一,定义内容窗口的打开方向。 默认值为 Down

属性

示例

下面的示例演示如何设置 ExpandDirection 属性。

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

注解

依赖项属性信息

标识符字段 ExpandDirectionProperty
元数据属性设置为 true BindsTwoWayByDefault

适用于

另请参阅