Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

Grouping radio buttons by name

<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>