WPFwiki, wpf, wiki, .net 3.0, windows presentation foundation, FAQ, free resources, solution, development, microsoft Home of the world's largest WPF FAQ
Edit

Category

Fundamentals

Edit

Question

What is the difference between a DependencyProperty and a CLR property?

Edit

Answer

If you are familiar with the .NET framework, you already know what a Common Language Runtime (CLR) property is: it is the classic .NET class property. In WPF, we specifically refer to them as CLR properties mainly to distinguish them from the new DependencyProperty.

In short, a DependencyProperty is a special form of property that has the feature of being able to interact with WPF (styling, data binding, animation, etc.).

A DependencyProperty is always a property of an object derived from the DependencyObject class. Note that only Dependency Properties can be used as a binding target. A DependencyProperty is created using the static Register method of the DependencyProperty class.

Edit

Related Links

What is a DependencyObject?

All content is Copyright ©2007 Xceed Software Inc. unless otherwise indicated. See the Terms of Service. Contributors must read and agree to the Contribution Policy. WPFwiki is brought to you by Xceed, makers of the powerful yet free Xceed DataGrid for WPF.