Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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 ExpandDirection ExpandDirection { get; set; }

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:
© 2017 Microsoft