Expander.ExpandDirection Property

 

Gets or sets the direction in which the Expander content window opens.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

<BindableAttribute(True)>
Public Property ExpandDirection As ExpandDirection

Property Value

Type: System.Windows.Controls.ExpandDirection

One of the ExpandDirection values that defines which direction the content window opens. The default is ExpandDirection.Down.

The following example shows how to set the ExpandDirection property.

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

.NET Framework
Available since 3.0
Return to top
Show: