#29 – DependencyObject
August 10, 2010 1 Comment
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