Routed Events

Every .NET developer is familiar with the idea of events—messages that are sent by an object (such as a Silverlight element) to notify your code when something significant occurs. WPF enhanced the .NET event model with a new concept of event routing, which allows an event to originate in one element but be raised by another one. For example, event routing allows a click that begins in a shape to rise up to that shape's container and then to the containing page before it's handled by your code.

Silverlight borrows some of WPF's routed event model but in a dramatically simplified form. While WPF supports several types of routed events, Silverlight allows only one: bubbled events that rise up the containment hierarchy from deeply nested ...

Get Pro Silverlight 5 in VB now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.