ExpandDirection Enumeration
.NET Framework (current version)
Specifies the direction in which an Expander control opens.
Assembly: PresentationFramework (in PresentationFramework.dll)
To specify the direction that an Expander control expands, set the ExpandDirection property to one of the enumeration members.
The following example shows how to set the ExpandDirection property to an ExpandDirection enumeration member.
<StackPanel> <RadioButton Name="ExpandDown" Margin="0,10,0,10" IsChecked="True" Checked="ChangeExpandDirection" GroupName="ExpandDirectionProperty"> Expand Down </RadioButton> <RadioButton Name="ExpandUp" Margin="0,0,0,10" Checked="ChangeExpandDirection" GroupName="ExpandDirectionProperty"> Expand Up </RadioButton> <RadioButton Name="ExpandLeft" Margin="0,0,0,10" Checked="ChangeExpandDirection" GroupName="ExpandDirectionProperty"> Expand Left </RadioButton> <RadioButton Name="ExpandRight" Margin="0,0,0,10" Checked="ChangeExpandDirection" GroupName="ExpandDirectionProperty"> Expand Right </RadioButton> </StackPanel>
.NET Framework
Available since 3.0
Available since 3.0
Show: