Edit

Share via


Connected.RegisterElementForConnectedAnimation Method

Definition

Registers an Windows.UI.Xaml.UIElement with the ConnectedAnimations service to run automatically on page navigation

public static void RegisterElementForConnectedAnimation (this Windows.UI.Xaml.Controls.Page page, string key, Windows.UI.Xaml.UIElement element, System.Collections.Generic.IEnumerable<Windows.UI.Xaml.UIElement> anchors = default);
static member RegisterElementForConnectedAnimation : Windows.UI.Xaml.Controls.Page * string * Windows.UI.Xaml.UIElement * seq<Windows.UI.Xaml.UIElement> -> unit
<Extension()>
Public Sub RegisterElementForConnectedAnimation (page As Page, key As String, element As UIElement, Optional anchors As IEnumerable(Of UIElement) = Nothing)

Parameters

page
Windows.UI.Xaml.Controls.Page

The parent page of the element

key
String

The key of the element (same key will need to be used on another page)

element
Windows.UI.Xaml.UIElement

The element to animate

anchors
IEnumerable<Windows.UI.Xaml.UIElement>

Any other elements to animate alongside the element

Applies to