public void RemoveAnimation(UIAnimationModel animationModel)
        {
            int index = IndexOf(animationModel);

            if (index == -1)
            {
                return;
            }
            animationsList.Animations.RemoveAt(index);
            Animations.RemoveAt(index);
            Invalidate();
        }
 public int IndexOf(UIAnimationModel animationModel) => Animations.IndexOf(animationModel);