O'Reilly logo

Sams Teach Yourself WPF in 24 Hours by Christopher Bennage, Rob Eisenberg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Getting a Handle on Events

What You’ll Learn in This Hour:

  • Routed events

  • Bubbling and tunneling

  • Arguments for routed events

  • Attached events

  • Preview events

  • Generic event handlers

WPF has introduced a rich system for tracking and responding to events. In this hour, we explore how this new event system functions, how it interacts with traditional events, and how you can leverage its power in your applications. Understanding this event model can be a little challenging. We’ll be digging deeper into the technology than in the previous hours.

What Are Routed Events?

An application in WPF consists of many elements in a tree. This can be seen in all our examples so far. A TextBlock could be nested inside a StackPanel, which could be inside a Grid, which ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required