Radio buttons group XAML(单选按钮组 XAML)
问题描述
我在 XAML 中有六个单选按钮,我想创建两个组.WPF 好像没有单选按钮组元素,我该怎么做呢?
I have six radio buttons in XAML, and I would like to create two groups. It seems that WPF has no radiobutton group element, so how can I do this?
推荐答案
你必须为元素指定一个 GroupName.
You have to specify a GroupName for the element.
<RadioButton GroupName="Group1"/>
这篇关于单选按钮组 XAML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!