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