Головна‎ > ‎C# WPF‎ > ‎

Радіокнопка (RadioButton)

<StackPanel x:Name="stackPanel">
     <RadioButton GroupName="Languages" Content="C#" IsChecked="True" />
     <RadioButton GroupName="Languages" Content="VB.NET" />
     <RadioButton GroupName="Languages" Content="C++" />
     <RadioButton GroupName="Technologies" Content="WPF" IsChecked="True" />
     <RadioButton GroupName="Technologies" Content="WinForms" />
</StackPanel>



if
(MyRadioButton.IsChecked == true) {

}