CompositionObject.TryGetAnimationController(String) Method

Definition

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

public:
 virtual AnimationController ^ TryGetAnimationController(Platform::String ^ propertyName) = TryGetAnimationController;
AnimationController TryGetAnimationController(winrt::hstring const& propertyName);
public AnimationController TryGetAnimationController(string propertyName);
Public Function TryGetAnimationController (propertyName As String) As AnimationController

Parameters

propertyName
String

The property being animated.

Returns

AnimationController

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

Applies to