private static DoubleAnimationUsingKeyFrames AddLinearDoubleKeyFrame(this DoubleAnimationUsingKeyFrames doubleAnimation, double seconds, double value) { doubleAnimation.AddEasingDoubleKeyFrame(TimeSpan.FromSeconds(seconds), value); return(doubleAnimation); }
private static DoubleAnimationUsingKeyFrames AddEasingDoubleKeyFrame(this DoubleAnimationUsingKeyFrames doubleAnimation, double seconds, double value, EasingFunctionBase ease = null) { doubleAnimation.AddEasingDoubleKeyFrame(TimeSpan.FromSeconds(seconds), value, ease); return(doubleAnimation); }
/// <summary> /// Adds an <see cref="EasingDoubleKeyFrame"/> /// </summary> public static DoubleAnimationUsingKeyFrames AddKeyFrame(this DoubleAnimationUsingKeyFrames doubleAnimation, TimeSpan keyTime, double value, EasingFunctionBase ease = null) { doubleAnimation.AddEasingDoubleKeyFrame(keyTime, value, ease); return(doubleAnimation); }