What You’ll Learn in This Hour:
Bubbling and tunneling
Arguments for routed 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.
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 ...