RoutedEvents
I have an user control with MouseDoubleClick handler declared. The problem is that if I double click a child the usercontrol's MouseDoubleClick fires, but, I don't want that. How can I manage this?
Thanks
Inside the user control's MouseDoubleClick handler, check the sender.
Only proceed if the sender is the user control.
Sorry, my last post didn't really answer your question and now I can't delete it. Depending on your situation, though, it will probably give you the desired effect.
If the children handle the event, it will not bubble up to your UserControl. They state that they have handled the event by setting e.Handled to true in their handling code. If the event reaches your UserControl you can check e.Source or even e.OriginalSource to see what actually trigger the event, and whether the continue processing.