1

Is there any way I can wire up an attached behavior based on the ButtonBase class where I could do something before any 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.

Patrick Klug
  • 14,056
  • 13
  • 71
  • 118

1 Answers1

1

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".

Rick Sladkey
  • 33,988
  • 6
  • 71
  • 95