/// <summary>
        /// Gets the value of the <see cref="AnimationsProperty"/> property.
        /// </summary>
        /// <param name="element">The <see cref="UIElement"/> to get the value for.</param>
        /// <returns>The retrieved <see cref="AnimationDictionary"/> item.</returns>
        public static AnimationDictionary GetAnimations(UIElement element)
        {
            if (element.GetValue(AnimationsProperty) is AnimationDictionary collection)
            {
                return(collection);
            }

            collection = new AnimationDictionary();

            element.SetValue(AnimationsProperty, collection);

            return(collection);
        }
 /// <summary>
 /// Sets the value of the <see cref="AnimationsProperty"/> property.
 /// </summary>
 /// <param name="element">The <see cref="UIElement"/> to set the value for.</param>
 /// <param name="value">The <see cref="AnimationDictionary"/> value to set.</param>
 public static void SetAnimations(UIElement element, AnimationDictionary value)
 {
     element.SetValue(AnimationsProperty, value);
 }