background preloader

RadioButton

Facebook Twitter

RadioButton IsChecked Binding not working « WPF, .NET & Other st. RadioButton unchecked bindings issue still not resolved? I hit that problem too and found it a real nuisance.

RadioButton unchecked bindings issue still not resolved?

I tried to get rid of the GroupName as some post suggested to no avail. I tried to force an update of the binding by code but I hit an exception as I guess the framework removes the binding so the BindingExpression becomes null... I finally used the Checked event on each radio to call a generic update routine: private void myRadio_Checked(object sender, RoutedEventArgs e) RadioButton IsChecked Binding not sending uncheck event. I am trying to databind several radiobuttons to some objects that have a checked property.

RadioButton IsChecked Binding not sending uncheck event

If a click on an unselected radio button, my databound object is updated. However the other object that should now be not checked is not. The code is fairly simple. Am I missing something here or is this a bug in databinding for RadioButtons? <RadioButton Name="A" IsChecked="{Binding Path=Checked}" GroupName="Group">Yes</RadioButton>