1
您好我想使這個擴展對齊veritically而不是horizontaly用箭頭朝向垂直藏漢ATM它看起來像這樣:擴展垂直對齊
公開賽:
休息日:
<StackPanel>
<StackPanel.Triggers>
<EventTrigger RoutedEvent="Expander.Expanded" SourceName="expander">
<EventTrigger.Actions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation From="0" To="1" Duration="0:0:0.25" Storyboard.TargetName="listBox" Storyboard.TargetProperty="(FrameworkElement.LayoutTransform).(ScaleTransform.ScaleY)"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</StackPanel.Triggers>
<Expander x:Name="expander" Header="Expander" Expanded="expander_Expanded">
<ListBox x:Name="listBox">
<ListBoxItem Content="ListBoxItem" />
<ListBoxItem Content="ListBoxItem" />
<ListBoxItem Content="ListBoxItem" />
<ListBox.LayoutTransform>
<ScaleTransform ScaleX="1" ScaleY="0"/>
</ListBox.LayoutTransform>
</ListBox>
</Expander>
</StackPanel>