我在 XAML 中有六个单选按钮,我想创建两个组。 WPF 似乎没有单选按钮组元素,那么我该怎么做呢?
您必须为元素指定一个 GroupName。
<RadioButton GroupName="Group1"/>