如何取消选中/重置/清除一组单选按钮的选择,这些单选按钮在相同的组名下
我怎样才能在 MVVM 中实现这一点?
编辑 1:
<RadioButton Grid.Row="1" Grid.Column="2" GroupName = "TransactSelect" IsEnabled="{Binding IsOnlyEnabled}" IsChecked="{Binding IsOnlyCancelVoidChecked}"></RadioButton>
<RadioButton Grid.Row="2" Grid.Column="2" GroupName = "TransactSelect" IsEnabled="{Binding IsOnlyEnabled}" IsChecked="{Binding IsOnlySuspiciousChecked}"></RadioButton>
<RadioButton Grid.Row="3" Grid.Column="2" GroupName = "TransactSelect" IsEnabled="{Binding IsOnlyEnabled}" IsChecked="{Binding IsOnlyDirectDebitChecked}"></RadioButton>