Blog

Event bubbling and tunneling Routing strategies.

Aug 22, 2011 Blogs | WPF
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



Nipun Tomar

Nipun is competent and experienced project leader, with 9 years of experience in managing multi-disciplinary teams of varying sizes and complex programs of work. Has the ability to build stro...

  • 27rank
  • 4M readers
  • 1times
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