归类常用控件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>

 

posted @ 2019-06-16 14:59  夕西行  阅读(308)  评论(0编辑  收藏  举报