WPF and routed event
Posted
by user109534
on Stack Overflow
See other posts from Stack Overflow
or by user109534
Published on 2009-07-27T17:36:13Z
Indexed on
2010/03/16
6:06 UTC
Read the original article
Hit count: 421
wpf
|routed-events
I have a WPF window, which has a button that is inside a stackPanel, which is inside another stackPanel
I wrote an event handler for the button for the MouseDown event. I want to execute this eventHandler three times for the button and the parent (stack panel) and the parent's parent
How can I achieve that with the routed event, by writing only one event handler? I don't want to repeat the event handler code.
Thanks
© Stack Overflow or respective owner