ConnectedAnimationService.GetAnimation(String) Method

Definition

Returns the animation with the specified key.

public:
 virtual ConnectedAnimation ^ GetAnimation(Platform::String ^ key) = GetAnimation;
ConnectedAnimation GetAnimation(winrt::hstring const& key);
public ConnectedAnimation GetAnimation(string key);
function getAnimation(key)
Public Function GetAnimation (key As String) As ConnectedAnimation

Parameters

key
String

Platform::String

winrt::hstring

The key for the animation.

Returns

The animation with the specified key; or null if no animation has been prepared for that key, or if the animation is no longer active.

Remarks

A ConnectedAnimation is no longer active when:

  • It has been canceled.
  • The animation has completed.
  • The source has expired (PrepareToAnimate was called and then the animation was not started for ~2 seconds).

Applies to