Example #1
0
        public static KeyTime FromTimeSpan(TimeSpan timeSpan)
        {
            if (timeSpan < TimeSpan.Zero)
            {
                throw new ArgumentOutOfRangeException("timeSpan");
            }

            KeyTime keyTime = new KeyTime();

            keyTime._timeSpan = timeSpan;

            return keyTime;
        }
Example #2
0
 public bool Equals(KeyTime value)
 {
     return KeyTime.Equals(this, value);
 }
Example #3
0
 public static bool Equals(KeyTime keyTime1, KeyTime keyTime2)
 {
     return (keyTime1._timeSpan == keyTime2._timeSpan);
 }
Example #4
0
 public static bool operator !=(KeyTime keyTime1, KeyTime keyTime2)
 {
     return(!KeyTime.Equals(keyTime1, keyTime2));
 }
Example #5
0
 public bool Equals(KeyTime value)
 {
     return(KeyTime.Equals(this, value));
 }
Example #6
0
 /// <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;
 }
Example #7
0
 public static bool Equals(KeyTime keyTime1, KeyTime keyTime2)
 {
     return(keyTime1._timeSpan == keyTime2._timeSpan);
 }
Example #8
0
 /// <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)
 {
 }
Example #9
0
 /// <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)
 {
 }
Example #10
0
 public DoubleKeyFrame(double value, KeyTime keyTime) : this()
 {
     Value   = value;
     KeyTime = keyTime;
 }
Example #11
0
 /// <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;
 }
Example #12
0
 /// <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)
 {
 }