Пример #1
0
        public static ImplicitAnimationSet GetHideAnimations(UIElement element)
        {
            var collection = (ImplicitAnimationSet)element.GetValue(HideAnimationsProperty);

            if (collection is null)
            {
                element.SetValue(HideAnimationsProperty, collection = new ImplicitAnimationSet());
            }

            return(collection);
        }
Пример #2
0
 public static void SetHideAnimations(UIElement element, ImplicitAnimationSet value)
 {
     element.SetValue(HideAnimationsProperty, value);
 }