Expander::ExpandDirection Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

property ExpandDirection ExpandDirection {
	ExpandDirection get();
	void set(ExpandDirection value);

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.

No code example is currently available or this language may not be supported.
<Expander Name ="myExpanderOpensUp" ExpandDirection="Up" 
          Header ="expanderTitle" Content="expanderContent"/>

.NET Framework
Available since 3.0
Return to top