/// <summary> /// Adds a <see cref="LinearDoubleKeyFrame"/> /// </summary> public static DoubleAnimationUsingKeyFrames AddKeyFrame(this DoubleAnimationUsingKeyFrames doubleAnimation, TimeSpan keyTime, double value) { doubleAnimation.AddLinearDoubleKeyFrame(keyTime, value); return(doubleAnimation); }
/// <summary> /// Adds a <see cref="LinearDoubleKeyFrame"/> /// </summary> /// <param name="doubleAnimation"></param> /// <param name="seconds">Duration in seconds</param> /// <param name="value"></param> /// <returns></returns> public static DoubleAnimationUsingKeyFrames AddKeyFrame(this DoubleAnimationUsingKeyFrames doubleAnimation, double seconds, double value) { doubleAnimation.AddLinearDoubleKeyFrame(TimeSpan.FromSeconds(seconds), value); return(doubleAnimation); }