public static KeyTime FromTimeSpan(TimeSpan timeSpan) { if (timeSpan < TimeSpan.Zero) { throw new ArgumentOutOfRangeException("timeSpan"); } KeyTime keyTime = new KeyTime(); keyTime._timeSpan = timeSpan; return keyTime; }
public bool Equals(KeyTime value) { return KeyTime.Equals(this, value); }
public static bool Equals(KeyTime keyTime1, KeyTime keyTime2) { return (keyTime1._timeSpan == keyTime2._timeSpan); }
public static bool operator !=(KeyTime keyTime1, KeyTime keyTime2) { return(!KeyTime.Equals(keyTime1, keyTime2)); }
public bool Equals(KeyTime value) { return(KeyTime.Equals(this, value)); }
/// <summary> /// Initializes a new instance of the SplineDoubleKeyFrame class with the specified ending value, key time, and KeySpline. /// </summary> /// <param name="value">Ending value (also known as "target value") for the key frame.</param> /// <param name="keyTime">Key time for the key frame. The key time determines when the target value is reached which is also when the key frame ends.</param> /// <param name="keySpline">KeySpline for the key frame. The KeySpline represents a Bezier curve which defines animation progress of the key frame.</param> public SplineDoubleKeyFrame(double value, KeyTime keyTime, KeySpline keySpline) : base(value, keyTime) { KeySpline = keySpline; }
public static bool Equals(KeyTime keyTime1, KeyTime keyTime2) { return(keyTime1._timeSpan == keyTime2._timeSpan); }
/// <summary> /// Initializes a new instance of the LinearDoubleKeyFrame class with the specified ending value and key time. /// </summary> /// <param name="value">Ending value (also known as "target value") for the key frame.</param> /// <param name="keyTime">Key time for the key frame. The key time determines when the target value is reached which is also when the key frame ends.</param> public LinearDoubleKeyFrame(double value, KeyTime keyTime) : base(value, keyTime) { }
/// <summary> /// Initializes a new instance of the DiscreteDoubleKeyFrame class with the specified ending value and key time. /// </summary> /// <param name="value">Ending value (also known as "target value") for the key frame.</param> /// <param name="keyTime">Key time for the key frame. The key time determines when the target value is reached which is also when the key frame ends.</param> public DiscreteDoubleKeyFrame(double value, KeyTime keyTime) : base(value, keyTime) { }
public DoubleKeyFrame(double value, KeyTime keyTime) : this() { Value = value; KeyTime = keyTime; }
/// <summary> /// Initializes a new instance of the EasingDoubleKeyFrame class with the specified Double value, key time, and easing function. /// </summary> /// <param name="value">The initial Double value.</param> /// <param name="keyTime">The initial key time.</param> /// <param name="easingFunction">The easing function.</param> public EasingDoubleKeyFrame(double value, KeyTime keyTime, EasingFunctionBase easingFunction) : base(value, keyTime) { EasingFunction = easingFunction; }
/// <summary> /// Initializes a new instance of the EasingDoubleKeyFrame class with the specified Double value and key time. /// </summary> /// <param name="value">The initial Double value.</param> /// <param name="keyTime">The initial key time.</param> public EasingDoubleKeyFrame(double value, KeyTime keyTime) : base(value, keyTime) { }