Reputation: 1153
How to uncheck/Reset/clear selection for a group of radio buttons,which are under same Group Name
how can i achieve this in MVVM ?
Edit 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>
Upvotes: 0
Views: 3744
Reputation: 1153
I Have solved my problem using the below link . There is some problem with Radio Button Binding thorugh MVVM.
Known Issue Discussed in the Below Link:
http://social.msdn.microsoft.com/forums/en-US/wpf/thread/8eb8280a-19c4-4502-8260-f74633a9e2f2/
so , i followed karliwatson Strategy from the Below Link.
http://social.msdn.microsoft.com/forums/en-US/wpf/thread/8eb8280a-19c4-4502-8260-f74633a9e2f2/
Upvotes: 2