其他分享
首页 > 其他分享> > 归类常用控件GroupBox、TabControl、Expander

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

 

标签:控件,常用,归类,GroupBox,TabControl,Expander
来源: https://www.cnblogs.com/xixixing/p/11031581.html