归类常用控件GroupBox、TabControl、Expander
<StackPanel Orientation="Horizontal"> <GroupBox Header="颜色" Margin="10"> <StackPanel> <RadioButton Content="红"/> <RadioButton Content="绿"/> <RadioButton Content="蓝"/> </StackPanel> </GroupBox> <TabControl Margin="10"> <TabItem Header="理科"> <StackPanel> <RadioButton Content="物理"/> <RadioButton Content="化学"/> </StackPanel> </TabItem> <TabItem Header="文科"> <StackPanel> <RadioButton Content="历史"/> <RadioButton Content="政治"/> </StackPanel> </TabItem> </TabControl> <StackPanel Margin="10"> <Expander Header="本科同学"> <StackPanel HorizontalAlignment="Center"> <TextBlock Text="张三"/> <TextBlock Text="李四"/> </StackPanel> </Expander> <Expander Header="研究生同学"> <StackPanel HorizontalAlignment="Center"> <TextBlock Text="王五"/> <TextBlock Text="赵六"/> </StackPanel> </Expander> </StackPanel> </StackPanel>