AnimationBuilder.StartAsync Method

Definition

Overloads

StartAsync(UIElement)

Starts the animations present in the current AnimationBuilder instance.

StartAsync(UIElement, CancellationToken)

Starts the animations present in the current AnimationBuilder instance, and registers a given cancellation token to stop running animations before they complete.

StartAsync(UIElement)

Starts the animations present in the current AnimationBuilder instance.

public System.Threading.Tasks.Task StartAsync (Windows.UI.Xaml.UIElement element);
member this.StartAsync : Windows.UI.Xaml.UIElement -> System.Threading.Tasks.Task
Public Function StartAsync (element As UIElement) As Task

Parameters

element
Windows.UI.Xaml.UIElement

The target Windows.UI.Xaml.UIElement to animate.

Returns

A Task that completes when all animations have completed.

Applies to

StartAsync(UIElement, CancellationToken)

Starts the animations present in the current AnimationBuilder instance, and registers a given cancellation token to stop running animations before they complete.

public System.Threading.Tasks.Task StartAsync (Windows.UI.Xaml.UIElement element, System.Threading.CancellationToken token);
member this.StartAsync : Windows.UI.Xaml.UIElement * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function StartAsync (element As UIElement, token As CancellationToken) As Task

Parameters

element
Windows.UI.Xaml.UIElement

The target Windows.UI.Xaml.UIElement to animate.

token
CancellationToken

The cancellation token to stop animations while they're running.

Returns

A Task that completes when all animations have completed.

Applies to