Chapter 7. Dependency Properties
Properties and a New Paradigm
You might have noticed by now that WPF uses properties extensively. The WPF classes have been specifically designed to use properties rather than methods, when possible, because properties are declarative, making them ideal for XAML's declarative syntax. But beyond just the preference for properties, WPF has produced a whole new way of using properties and a set of services to support that method.
Before looking at WPF's new paradigm for properties, however, let's review a bit about standard .NET properties in general. The following are some important things to remember about properties:
A property is usually associated with a
privatefield in the class and represents that field to other ...