There are two radiobuttons. On each I have set eventhandlers for Checked and Unchecked. When radio1 is checked and I set radio2, event handler for uncheck radio1 doesn’t run, only event handler for check radio2. How can I run both of them?
There are two radiobuttons. On each I have set eventhandlers for Checked and Unchecked.
Share
Those events only reflect user interaction, if you want to catch all changes you might want to bind
IsCheckedon both RadioButtons to respective properties, then you can subscribe to aPropertyChangedevent to get all changes. (You of course need to implementINotifyPropertyChanged, alternatively you can bind to new dependency properties on which you can register property changed callbacks).Even easier: