这是我拥有的代码,我想知道如何完全卷起堆栈、扩展器和其中的对象,以推动其下方的所有对象以占用上层堆栈和对象卷起后留下的空间。我当前的代码如下:
<Grid>
<StackPanel Margin="8,8,0,0" VerticalAlignment="Top" Height="225">
<Expander Header="Expander">
<Grid Height="201">
<ListBox HorizontalAlignment="Left" Margin="103,63,0,38" Width="100">
<ListBoxItem Content="Brown"/>
<ListBoxItem Content="Red"/>
<ListBoxItem Content="Green"/>
<ListBoxItem Content="Yellow"/>
</ListBox>
</Grid>
</Expander>
</StackPanel>
<StackPanel Margin="0,0,0,8" VerticalAlignment="Bottom" Height="221">
<Expander Header="Expander">
<Grid Height="194">
<ListBox Margin="177,21,213,73">
<ListBoxItem Content="Gold"/>
<ListBoxItem Content="Silver"/>
<ListBoxItem Content="Platinum"/>
<ListBoxItem Content="Palladium"/>
</ListBox>
</Grid>
</Expander>
</StackPanel>
</Grid>