Hi there,
Does anyone know how to programmatically remove/add the checked and unchecked event on WPF checkbox?
Hi there,
Does anyone know how to programmatically remove/add the checked and unchecked event on WPF checkbox?
Assuming your event handlers are proper methods and not anonymous delegates:
mycheckbox.Unchecked -= theEventHandler;
mycheckbox.Checked -= theOtherEventHandler;