ConnectedAnimationService.PrepareToAnimate(String, UIElement) ConnectedAnimationService.PrepareToAnimate(String, UIElement) ConnectedAnimationService.PrepareToAnimate(String, UIElement) ConnectedAnimationService.PrepareToAnimate(String, UIElement) Method

Definition

Returns a connected animation that's associated with the specified key and source element.

public : ConnectedAnimation PrepareToAnimate(Platform::String key, UIElement source)
ConnectedAnimation PrepareToAnimate(winrt::hstring key, UIElement source) const;
public ConnectedAnimation PrepareToAnimate(String key, UIElement source)
Public Function PrepareToAnimate(key As String, source As UIElement) As ConnectedAnimation

Parameters

key
String String

The key for the animation.

source
UIElement UIElement

The element that is animated out of view.

Returns

The animation with the specified key.

Remarks

When you call PrepareToAnimate, you supply a key to associate with the newly created ConnectedAnimation returned by the method. You can later use this key to retrieve the same animation by calling GetAnimation. This lets you connect the animation between two different pages without having to manually pass the reference to the ConnectedAnimation object between pages.