CHAPTER 4

Image

Dependency Properties

Every .NET programmer is familiar with properties and events, which are core parts of .NET’s object abstraction. Few would expect WPF, a user interface technology, to change either of these fundamentals. But surprisingly enough, that’s exactly what WPF does.

In this chapter, you’ll learn how WPF replaces ordinary .NET properties with a higher-level dependency property feature. Dependency properties use more-efficient storage and support additional features such as change notification and property value inheritance (the ability to propagate default values down the element tree). Dependency properties are also the ...

Get Pro WPF 4.5 in C#: Windows Presentation Foundation in .NET 4.5, Fourth 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.