The Last Word

In this chapter, you took a deep look at WPF dependency properties and routed events. First, you saw how dependency properties are defined and registered and how they plug into other WPF services. Next, you explored routed events and saw how they allow you to deal with events at different levels—either directly at the source or in a containing element. Finally, you saw how these routing strategies are implemented in the WPF elements to allow you to deal with keyboard and mouse input.

It may be tempting to begin writing event handlers that respond to common events such as mouse movements to apply simple graphical effects or otherwise update the user interface. But don't start writing this logic just yet. As you'll see later in ...

Get Pro WPF in C# 2008: Windows Presentation Foundation with .NET 3.5, Second Edition 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.