Share via


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);
function tryGetAnimationController(propertyName)
Public Function TryGetAnimationController (propertyName As String) As AnimationController

Parameters

propertyName
String

Platform::String

winrt::hstring

The property being animated.

Returns

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

Applies to