Grouping radio buttons by name : RadioButton « Windows Presentation Foundation « VB.Net Tutorial






<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      HorizontalAlignment="Center" VerticalAlignment="Center">

        <StackPanel>
          <RadioButton GroupName="A">1</RadioButton>
          <RadioButton GroupName="A">2</RadioButton>
          <RadioButton GroupName="B">3</RadioButton>
          <RadioButton GroupName="B">4</RadioButton>
          <RadioButton GroupName="B">5</RadioButton>
        </StackPanel>

</Page>
WPF Grouping Radio Buttons By Name








16.14.RadioButton
16.14.1.Grouping radio buttons by parentGrouping radio buttons by parent
16.14.2.Grouping radio buttons by nameGrouping radio buttons by name
16.14.3.CheckRadio GroupCheckRadio Group
16.14.4.Image RadioButtonImage RadioButton
16.14.5.RadioButton click eventRadioButton click event
16.14.6.Use RadioButton to control TextBox alignmentUse RadioButton to control TextBox alignment
16.14.7.RadioButton checked event handlerRadioButton checked event handler