#29 – Dependency Properties
August 10, 2010 3 Comments
DependencyObject is the base class for classes that support dependency properties.
A dependency property in WPF is similar to a standard CLR property, but more powerful. Dependency properties:
- Obtain their values from one of a number of different sources
- Support inheritance of property values
- Support notification, when a property value changes
If a class derives from DependencyObject, that class can then register its own dependency properties and call methods to get/set the values of its dependency properties.
Pingback: #98 – How Attached Properties Work in WPF « 2,000 Things You Should Know About WPF
Pingback: #574 – Complete Example of Implementing a Dependency Property « 2,000 Things You Should Know About WPF
Pingback: #1,040 – An Example of Dependency Property Inheritance | 2,000 Things You Should Know About WPF