#29 – Dependency Properties

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.


About Sean
Software developer in the Twin Cities area, passionate about software development and sailing.

3 Responses to #29 – Dependency Properties

  1. Pingback: #98 – How Attached Properties Work in WPF « 2,000 Things You Should Know About WPF

  2. Pingback: #574 – Complete Example of Implementing a Dependency Property « 2,000 Things You Should Know About WPF

  3. Pingback: #1,040 – An Example of Dependency Property Inheritance | 2,000 Things You Should Know About WPF

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: