Declarative Dependency Property Definition with T4 + DTE
August 18th, 2009
This blog post describes a technique for specifying WPF / Silverlight Dependency Properties declaritively via attributes as illustrated by the following example:
[DependencyPropertyDecl("Maximum", typeof(double), 0.0)]
[DependencyPropertyDecl("Minimum", typeof(double), 0.0)]
public partial class RangeControl : UserControl
{
...
}
At design-time the declarations are read via a T4 template and the required code is generated. For more information, read on [...]
Dependency Property Performance and Lissajous Figures
June 2nd, 2009
A few night ago I was working on a Siverlight control which renders some quite complex Paths, the geometry of which is determined from a number of dependency properties. In order to gain UI coolness points I wanted to animate the dependency properties in order to see a smooth transition of the Path [...]
