public static ImplicitAnimationSet GetHideAnimations(UIElement element) { var collection = (ImplicitAnimationSet)element.GetValue(HideAnimationsProperty); if (collection is null) { element.SetValue(HideAnimationsProperty, collection = new ImplicitAnimationSet()); } return(collection); }
public static void SetHideAnimations(UIElement element, ImplicitAnimationSet value) { element.SetValue(HideAnimationsProperty, value); }