1

I'm trying to handle the MouseDownEvent for this control by adding a hook to RootVisual:

Application.Current.RootVisual.AddHandler(MouseLeftButtonDownEvent, 
(MouseButtonEventHandler)OnMouseLeftButtonEvent, true);

But even though I set the last parameter to true, it doesn't trigger for some reason. Any ideas on why is this happening and how to fix this are welcome!

EDIT: this toggle is located in a popup window if it makes any difference.

Chris Barlow
  • 3,274
  • 4
  • 31
  • 52
vlaku
  • 1,534
  • 2
  • 14
  • 27

0 Answers0