Radio Button Groups : RadioButton « Windows Presentation Foundation « C# / C Sharp






Radio Button Groups

Radio Button Groups
      
<Window x:Class="ClassicControls.RadioButtonGroups"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="RadioButtonGroups" Height="300" Width="300">
    <StackPanel>
      <GroupBox Margin="5">
        <StackPanel>
          <RadioButton>Group 1</RadioButton>
          <RadioButton>Group 1</RadioButton>
          <RadioButton>Group 1</RadioButton>
          <RadioButton Margin="0,10,0,0" GroupName="Group2">Group 2</RadioButton>
        </StackPanel>
      </GroupBox>
      <GroupBox Margin="5">
        <StackPanel>
          <RadioButton>Group 3</RadioButton>
          <RadioButton>Group 3</RadioButton>
          <RadioButton>Group 3</RadioButton>
          <RadioButton Margin="0,10,0,0" GroupName="Group2">Group 2</RadioButton>
        </StackPanel>
      </GroupBox>
    </StackPanel>
</Window>

   
    
    
    
    
    
  








Related examples in the same category

1.Checked RadioButtonChecked RadioButton
2.Use StackPanel to Hold RadioButtonsUse StackPanel to Hold RadioButtons
3.Circled Radio ButtonsCircled Radio Buttons
4.Color animate based on Radio Button Click eventColor animate based on Radio Button Click event
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