首页 > 代码库 > RadioButton单选

RadioButton单选

要实现RadioButton只要将需要单选的所有的RadioButton的GroupName属性设成同一个名字。

<RadioButton Margin="53,0,0,0" VerticalAlignment="Center" GroupName="SelectedItem" />

<RadioButton Margin="53,0,0,0" VerticalAlignment="Center" GroupName="SelectedItem" />

<RadioButton Margin="53,0,0,0" VerticalAlignment="Center" GroupName="SelectedItem" />