CompositionObject.TryGetAnimationController(String) CompositionObject.TryGetAnimationController(String) CompositionObject.TryGetAnimationController(String) CompositionObject.TryGetAnimationController(String) Method

Definition

Returns an AnimationController for the animation running on the specified property.

public : AnimationController TryGetAnimationController(Platform::String propertyName)
AnimationController TryGetAnimationController(winrt::hstring propertyName) const;
public AnimationController TryGetAnimationController(String propertyName)
Public Function TryGetAnimationController(propertyName As String) As AnimationController

Parameters

propertyName
String String

The property being animated.

Returns

An instance of AnimationController for the specified animation, or null if the animation is not found.

Additional features and requirements

Device family
Windows 10, version 1803 (introduced v10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)