event-routing

Silverlight page not catching input events

I have been attempting to handle the KeyDown event of a UserControl (page) in my Silverlight application, but there seems to be some strange behaviour on the part of Silverlight user input functionality. The event is not getting raised under any circumstance. I have even tried attaching the event handler to each container control within ...

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...