Ejemplo n.º 1
0
 private protected KeyFrameAnimation(KeyFrameAnimation <T, TExpression>?other)
     : base(other)
 {
     if (other is not null)
     {
         CopyStateFrom(other);
     }
 }
Ejemplo n.º 2
0
 private protected KeyFrameAnimation(KeyFrameAnimation <T> other)
     : base(other)
 {
     if (other != null)
     {
         CopyStateFrom(other);
     }
 }
Ejemplo n.º 3
0
        void CopyStateFrom(KeyFrameAnimation <T, TExpression> other)
        {
            _keyFrames.Clear();
            foreach (var pair in other._keyFrames)
            {
                _keyFrames.Add(pair.Key, pair.Value);
            }

            Duration = other.Duration;
            Target   = other.Target;
        }