ElementCompositionPreview.SetImplicitHideAnimation(UIElement, ICompositionAnimationBase) ElementCompositionPreview.SetImplicitHideAnimation(UIElement, ICompositionAnimationBase) ElementCompositionPreview.SetImplicitHideAnimation(UIElement, ICompositionAnimationBase) ElementCompositionPreview.SetImplicitHideAnimation(UIElement, ICompositionAnimationBase) Method

Definition

Associates the specified hide animation with a UIElement.

public : static void SetImplicitHideAnimation(UIElement element, ICompositionAnimationBase animation)
static void SetImplicitHideAnimation(UIElement element, ICompositionAnimationBase animation) const;
public static void SetImplicitHideAnimation(UIElement element, ICompositionAnimationBase animation)
Public Shared Sub SetImplicitHideAnimation(element As UIElement, animation As ICompositionAnimationBase)

Parameters

element
UIElement UIElement

The UIElement to associate the animation with.

animation
ICompositionAnimationBase ICompositionAnimationBase

The animation to play when the UIElement is hidden. A Null value prevents hide animations from playing for this element until the method is called again with an animation value.

Additional features and requirements

Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Remarks

When an element is removed from the scene or its Visibility property becomes Visibility.Collapsed, the element and all of its descendents in the UI tree will play their hide animations.