|
Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações.
|
Tradução
Original
|
Enumeração ExpandDirection
.NET Framework 3.5
Assembly: PresentationFramework (em PresentationFramework.dll)
<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>
privatevoid ChangeExpandDirection(object sender, RoutedEventArgs e) { if ((Boolean)ExpandDown.IsChecked) myExpander.ExpandDirection = ExpandDirection.Down; elseif ((Boolean)ExpandUp.IsChecked) myExpander.ExpandDirection = ExpandDirection.Up; elseif ((Boolean)ExpandLeft.IsChecked) myExpander.ExpandDirection = ExpandDirection.Left; elseif ((Boolean)ExpandRight.IsChecked) myExpander.ExpandDirection = ExpandDirection.Right; //Expand myExpander so it is easier to see the effect of changing //the ExpandDirection property for My Expander myExpander.IsExpanded = true; }
Windows Vista, Windows XP SP2, Windows Server 2003
o.NET Framework e.NET Compact Framework não oferecem suporte a todas as versões de cada plataforma. Para obter uma lista de versões suportadas, consulte Requisitos de sistema do .NET framework.