Alex Rivera | Logout

What is a dependency property?

Asked 2009-03-06T00:31:54.123
148

What is a dependency property in .NET (especially in WPF context). What is the difference from the regular property?

Edit
Report

1 Answer

96

Dependency properties are properties of classes that derive from DependencyObject, and they're special in that rather than simply using a backing field to store their value, they use some helper methods on DependencyObject.

The nicest thing about them is that they have all the plumbing for data binding built in. If you bind something to them, they'll notify it when they change.

answered 2009-03-06T00:43:00.353

Your Answer