|
by luisabreu via LA.NET [EN] on 1/27/2010 10:20:27 AM
Now that you understand what attached properties are, we’re in the position to look at what is needed for creating attached properties. Since we’re building custom code, we do really need to rely in the RegisterAttached method (of the DependencyProperty class). Creating a new attached properties means doing the following: adding a static DependencyProperty field to the class; using the RegisterAttached method for creating the field which is used as a store for the dependency property;
... [ read more ]
|