Edit

Share via


ImplicitAnimation<TValue,TKeyFrame>.GetAnimation Method

Definition

Gets a Windows.UI.Composition.CompositionAnimation from the current node. This animation might be used either as an implicit show/hide animation, or as a direct implicit animation.

public Windows.UI.Composition.CompositionAnimation GetAnimation (Windows.UI.Xaml.UIElement element, out string? target);
abstract member GetAnimation : Windows.UI.Xaml.UIElement * string -> Windows.UI.Composition.CompositionAnimation
override this.GetAnimation : Windows.UI.Xaml.UIElement * string -> Windows.UI.Composition.CompositionAnimation
Public Function GetAnimation (element As UIElement, ByRef target As String) As CompositionAnimation

Parameters

element
Windows.UI.Xaml.UIElement

The target Windows.UI.Xaml.UIElement the animation will be applied to.

target
String

The optional target property for the animation. This might be used for direct implicit animations that target a property but want to be triggered according to a separate property.

Returns

Windows.UI.Composition.CompositionAnimation

A new Windows.UI.Composition.CompositionAnimation instance.

Implements

Applies to