Why doesn't button click event “bubble up visual tree” to StackPanel as MSDN article states?
- 阅读更多 关于 Why doesn't button click event “bubble up visual tree” to StackPanel as MSDN article states?
问题 In the MSDN article Understanding Routed Events and Commands In WPF, it states an event will bubble (propagate) up the visual tree from the source element until either it has been handled or it reaches the root element. However, in this example, when you click the button, it doesn't "bubble up the visual tree" to get handled by the parent StackPanel event , i.e. clicking on the button fires no event. Why not? What do they mean then by "bubbling up" if not this? XAML: <Window x:Class=