tags:

views:

30

answers:

1

Hi there,

Does anyone know how to programmatically remove/add the checked and unchecked event on WPF checkbox?

+3  A: 

Assuming your event handlers are proper methods and not anonymous delegates:

mycheckbox.Unchecked -= theEventHandler;
mycheckbox.Checked -= theOtherEventHandler;
Isak Savo
mean one, since the name in windows forms is different...
Mario The Spoon