2

I have a custom controls which propagates the mouse click event up the visual tree and I would like to get rid of this behaviour. Is there a way to mark a routed event (which was raised by button click or other mouse event) as handled from xaml in my UserControl.

Vitalij
  • 4,587
  • 9
  • 42
  • 65

1 Answers1

0

you can use e.Handled = true; to try and swallow events. Although button click events shouldn't bubble.

Val
  • 930
  • 6
  • 10