【发布时间】:2018-09-11 04:08:15
【问题描述】:
当 checked 属性为 true 时,单选按钮不会在 UWP 中被选中。单选按钮不在组中。请参阅下面的代码。
<StackPanel Orientation="Horizontal">
<RadioButton Content="1" IsChecked="True"/>
<RadioButton IsChecked="True"/>
</StackPanel>
您只能看到第二个单选按钮被选中。为什么?
【问题讨论】:
-
为他们创建单独的组。