为什么视图模型中的单选按钮绑定被多次触发

Why radio button binding in view model gets fired more than one time

我的 windows phone 这里有我的 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>>

您必须设置群组名称才能解决问题