예제 #1
0
 private protected KeyFrameAnimation(KeyFrameAnimation <T, TExpression>?other)
     : base(other)
 {
     if (other is not null)
     {
         CopyStateFrom(other);
     }
 }
예제 #2
0
 private protected KeyFrameAnimation(KeyFrameAnimation <T> other)
     : base(other)
 {
     if (other != null)
     {
         CopyStateFrom(other);
     }
 }
예제 #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;
        }