CheckRadio Group : RadioButton « Windows Presentation Foundation « VB.Net Tutorial






<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Menu Item Command Task">
  <StackPanel Orientation="Horizontal" Width = "400" Height = "100">
  <Expander Header = "Select Your Music Media" BorderBrush ="Black">
    <StackPanel>
      <RadioButton GroupName = "Music" >A</RadioButton>
      <RadioButton GroupName = "Music" >B</RadioButton>
      <RadioButton GroupName = "Music" >C</RadioButton>
    </StackPanel>
  </Expander>

  <Expander BorderBrush ="Black">
    <Expander.Header>
      <Label Background = "Blue" Foreground="White" FontSize="15" Content="Select your color choice"/>        
    </Expander.Header>
    <StackPanel>
      <RadioButton>Red</RadioButton>
      <RadioButton>Green</RadioButton>
      <RadioButton>Blue</RadioButton>    
    </StackPanel>
  </Expander >
</StackPanel>
</Window>
WPF Check Radio Group








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