WPFwiki, wpf, wiki, .net 3.0, windows presentation foundation, FAQ, free resources, solution, development, microsoft Home of the world's largest WPF FAQ
Edit

Category

Routed Events

Edit

Question

What are the different Routing Strategies availlable?

Edit

Answer

There are three routing strategies availlable.

- Bubbling
- Tunneling
- Direct

A Bubbling event is one which propagates from an element towards its ancestor. The starting point of the event is the Original Source of the event, while the ending point is the highest possible ancestor. This is often considered as the informal "default" routing strategy.

A Tunneling event is one which propagates from an element towards its children. The starting point of the event is the highest ancestor of the Original Source of the event, while the ending point is the Original Source itself (the "route" of the event is the exact opposite of that of a Bubbling event).

A Direct event is one which will not route in any direction, it will be sent only to the Original Source. This is the equivalent of a CLR event

Edit

Keywords

bubbling, tunneling, bubble, tunnel, routingstrategy, routing strategy

All content is Copyright ©2007 Xceed Software Inc. unless otherwise indicated. See the Terms of Service. Contributors must read and agree to the Contribution Policy. WPFwiki is brought to you by Xceed, makers of the powerful yet free Xceed DataGrid for WPF.