CompositionObject.TryGetAnimationController(String) Method
Definition
Returns an AnimationController for the animation running on the specified property.
Equivalent WinUI method: Microsoft.UI.Composition.CompositionObject.TryGetAnimationController.
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
The property being animated.
Returns
An instance of AnimationController for the specified animation, or null if the animation is not found.
Windows 10 requirements
Device family |
Windows 10, version 1803 (introduced in 10.0.17134.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v6.0)
|