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".
精彩评论