private static CompositionAnimationGroup GetCompositionAnimationGroup(AnimationCollection collection, UIElement element)
        {
            if (ApiInformationHelper.IsCreatorsUpdateOrAbove && collection.ContainsTranslationAnimation)
            {
                ElementCompositionPreview.SetIsTranslationEnabled(element, true);
            }

            return(collection.GetCompositionAnimationGroup(element));
        }
        private static CompositionAnimationGroup GetCompositionAnimationGroup(AnimationCollection collection, UIElement element)
        {
            if (collection.ContainsTranslationAnimation)
            {
                ElementCompositionPreview.SetIsTranslationEnabled(element, true);
            }

            return(collection.GetCompositionAnimationGroup(element));
        }