private static DoubleAnimationUsingKeyFrames AddSplineDoubleKeyFrame(this DoubleAnimationUsingKeyFrames doubleAnimation, double seconds, double value, KeySpline spline = null) { doubleAnimation.AddSplineDoubleKeyFrame(TimeSpan.FromSeconds(seconds), value, spline); return(doubleAnimation); }
/// <summary> /// Adds a <see cref="SplineDoubleKeyFrame"/> /// </summary> public static DoubleAnimationUsingKeyFrames AddKeyFrame(this DoubleAnimationUsingKeyFrames doubleAnimation, TimeSpan keyTime, double value, KeySpline spline) { doubleAnimation.AddSplineDoubleKeyFrame(keyTime, value, spline); return(doubleAnimation); }