开发者

WPF checkbox programmatically remove event

开发者 https://www.devze.com 2023-01-18 14:28 出处:网络
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:

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;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号