public static void BeginDoubleAnimation(this DependencyObject target, string path, double?to, Duration duration) { var animation = new DoubleAnimation { To = to, Duration = duration, EnableDependentAnimation = true }; target.BeginAnimation(animation, path); }
public static void BeginColorAnimation(this DependencyObject target, string path, Color to, Duration duration) { var animation = CreateColor(to, duration, path); target.BeginAnimation(animation, path); }
public static void BeginPointAnimation(this DependencyObject target, string path, Point to, Duration duration) { var animation = CreatePoint(to, duration, path); target.BeginAnimation(animation, path); }