<Window x:Class="WPF控件_5_RadioButton.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WPF控件_5_RadioButton"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <StackPanel>
        <GroupBox Margin="5">
            <StackPanel>
                <RadioButton>Group 1</RadioButton>
                <RadioButton>Group 2</RadioButton>
                <RadioButton>Group 3</RadioButton>
                <!-- 希望单独分离出一个组，但是又不希望离开原来分组 -->
                <RadioButton Margin="0 10 0 0 " GroupName="Group2">Group 3</RadioButton>
            </StackPanel>
        </GroupBox>

        <GroupBox Margin="5">
            <StackPanel>
                <RadioButton>Group4</RadioButton>
                <RadioButton>Group4</RadioButton>
                <RadioButton>Group4</RadioButton>
                <RadioButton Margin="0 10 0 0 " GroupName="Group2">Group4</RadioButton>
            </StackPanel>
        </GroupBox>
    </StackPanel>
</Window>
