开发者

Attached Behavior on ButtonBase to do something before the Click event is fired for others?

开发者 https://www.devze.com 2023-03-01 06:25 出处:网络
Is there any way I can wire up an attached behavior based on the ButtonBase class where I could do something before an开发者_如何学Goy other subscribers to the Click event are notified?

Is there any way I can wire up an attached behavior based on the ButtonBase class where I could do something before an开发者_如何学Goy other subscribers to the Click event are notified?

From my current understanding of events and RoutedEvents I would say no but maybe I'm missing something.


You can use RegisterClassHandler to add a handler that will be called before all other instance handlers. I realize this is not an "attached behavior".

0

精彩评论

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