Use StackPanel to Hold RadioButtons : RadioButton « Windows Presentation Foundation « C# / C Sharp






Use StackPanel to Hold RadioButtons

Use StackPanel to Hold RadioButtons
      
<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>

   
    
    
    
    
    
  








Related examples in the same category

1.Checked RadioButtonChecked RadioButton
2.Circled Radio ButtonsCircled Radio Buttons
3.Color animate based on Radio Button Click eventColor animate based on Radio Button Click event
4.Radio Button GroupsRadio Button Groups
5.Set RadioButton to check stateSet RadioButton to check state
6.Image RadioButtonImage RadioButton
7.RadioButton click eventRadioButton click event
8.Use RadioButton to control TextBox alignmentUse RadioButton to control TextBox alignment
9.RadioButton checked event handlerRadioButton checked event handler