Handling MouseDownEvent of ToggleButton in Silverlight 4

225 Views Asked by At

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.

0

There are 0 best solutions below