我的手机上有我的xaml,它有单选按钮,但有时真的很混乱。
我没有在代码中绑定所有完成的是xaml。
任何指针都会有所帮助。
这是代码,
<RadioButton Name="rdbChoice1"
Padding="5,0,5,0"
Content="x"
IsChecked="{Binding IsChoice1,Mode=TwoWay}"></RadioButton>
<RadioButtonName="rdbChoice2"
Padding="5,0,5,0"
Content="Not x"
IsChecked="{Binding IsChoice1,Converter={StaticResourceInverseBooleanConverter},Mode=OneWay}"></RadioButton>>
答案 0 :(得分:3)
您必须设置组名称才能解决问题