Use StackPanel to Hold RadioButtons

image_pdfimage_print


   
      
<Window x:Class="Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Use Radio Buttons" Height="300" Width="300">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="50*" />
            <ColumnDefinition Width="50*" />
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Column="0" Margin="2">
            <RadioButton Margin="5">RadioButton</RadioButton>
            <RadioButton Margin="5">RadioButton</RadioButton>
            <RadioButton Margin="5">RadioButton</RadioButton>
            <RadioButton Margin="5">RadioButton</RadioButton>
        </StackPanel>
        <StackPanel Grid.Column="1" Margin="2">
            <RadioButton Margin="5">RadioButton</RadioButton>
            <RadioButton Margin="5">RadioButton</RadioButton>
            <RadioButton Margin="5">RadioButton</RadioButton>
            <RadioButton Margin="5">RadioButton</RadioButton>
        </StackPanel>
    </Grid>
</Window>