Blog

Event bubbling and tunneling Routing strategies.

By Nipun Tomar Blogs | WPF Aug 22, 2011
Understand the process of bubbling and tunneling.

To understand the process of bubbling and tunneling let's take an example of a simple application which has been broke down in to its visual tree.
11.png


Bubbling Strategy:
In this strategy, we start with the control that originated the event and traverse up the tree as shown in the tree below:

22.png



Tunneling Strategy:
In this Strategy, when an event is fired, you go all the way to the root and traverse down until you hit the control that originated the event as shown in the tree below:

33.png



COMMENT USING

PREMIUM SPONSORS

Hire Mobile & Web Developer on demand. 100% satisfaction. Try for 1 week or Money Back. Local and remote developers available all over USA.

Latest Blogs