Hi everyone,
Let's say that I've defined a dependency like this:
public class MySampleClass
{public static DependencyProperty MyDoubleProperty = DependencyProperty.Register("MyDouble", typeof(double), typeof(MySampleClass));
public double MyDouble
{
get
{
return (double)GetValue(MyDoubleProperty);
}
set
{
SetValue(MyDoubleProperty, value);
}
}
}
I'd like to apply a DoubleAnimation to this value. How can I do this? Always before, I've used DoubleAnimations by calling the BeginAnimation method of a UIElement.
Thanks for your help!