O'Reilly logo

Pro WPF in C# 2008: Windows Presentation Foundation with .NET 3.5, Second Edition by Matthew MacDonald

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

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 ...

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