views:

1076

answers:

2

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

+5  A: 

http://techpunch.wordpress.com/2008/09/25/wpf-wf-what-is-a-dependency-property/ provides a good explanation of dependency properties both in the context of WF and WPF.

Ash M
+7  A: 

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.

There's a great overview of them here on MSDN.

Matt Hamilton