Animation Service. Prepare ToAnimate(String, UIElement) Method
Returns a connected animation that's associated with the specified key and source element.
public: virtual ConnectedAnimation ^ PrepareToAnimate(Platform::String ^ key, UIElement ^ source) = PrepareToAnimate;
ConnectedAnimation PrepareToAnimate(winrt::hstring const & key, UIElement const & source);
public ConnectedAnimation PrepareToAnimate(string key, UIElement source);
Public Function PrepareToAnimate (key As String, source As UIElement) As ConnectedAnimation
The key for the animation.
The element that is animated out of view.
The animation with the specified key.
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.