首页 > 代码库 > 可以折叠的按钮

可以折叠的按钮

<Grid>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Expander Header="可以折叠" Name="expander1" IsExpanded="True" >
<StackPanel>
<RadioButton>中国</RadioButton>
<RadioButton>美国</RadioButton>
<RadioButton>日本</RadioButton>
<RadioButton>法国</RadioButton>

</StackPanel>
</Expander>
<Expander Name="expander2" Grid.Row="1" ExpandDirection="Right">
<Expander.Header>
<Image Source="1.gif" Width="50" Height="50"></Image>
</Expander.Header>
<StackPanel>
<CheckBox>法国队</CheckBox>
<CheckBox>意大利队</CheckBox>
<CheckBox>巴西队</CheckBox>
</StackPanel>
</Expander>
</Grid>

可以折叠的按钮