WPF checkbox programmatically remove event
Does 开发者_JS百科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;
精彩评论