Blog

Event bubbling and tunneling Routing strategies.

Posted 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
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.
SPONSORED BY
  • MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.