Considering WPF controls, how do I know if a check box’s value has changed (toggled)?
I know there are the common Checked, Unchecked, Clicked events, but how about an event for when the value changes, regardless of how it was changed?
I looked through the events and I didn’t find anything, but maybe I’m missing the obvious (as it has happened many times in the past).
You can just bind
IsCheckedDependency Property to a boolean. On that binded property setter you can manipulate what you want (independently if it’s setting it to true or false). That works just as expected.On your view:
On your DataContext ViewModel or CodeBehind.