-
21 votesanswersviews
为什么按钮点击事件“冒泡视觉树”到StackPanel,如MSDN文章所述?
在MSDN文章Understanding Routed Events and Commands In WPF中,它说明 事件将从源元素向上冒泡(传播)可视树,直到它被处理或到达根元素 . 但是,在此示例中,单击按钮时, it doesn't "bubble up the visual tree" to get handled by the parent StackPanel...