Edit

Share via


AnimationSet.StartAsync Method

Definition

Overloads

StartAsync()

Starts all animations and returns an awaitable task.

StartAsync(CancellationToken)
StartAsync(UIElement)

Starts the animations present in the current AnimationBuilder instance.

StartAsync(UIElement, CancellationToken)

Starts the animations present in the current AnimationBuilder instance.

StartAsync()

Starts all animations and returns an awaitable task.

public System.Threading.Tasks.Task<bool> StartAsync ();
public System.Threading.Tasks.Task StartAsync ();
member this.StartAsync : unit -> System.Threading.Tasks.Task<bool>
member this.StartAsync : unit -> System.Threading.Tasks.Task
Public Function StartAsync () As Task(Of Boolean)
Public Function StartAsync () As Task

Returns

A Task that can be awaited until all animations have completed

Exceptions

Thrown when there is no attached Windows.UI.Xaml.UIElement instance.

Applies to

StartAsync(CancellationToken)

public System.Threading.Tasks.Task StartAsync (System.Threading.CancellationToken token);
member this.StartAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function StartAsync (token As CancellationToken) As Task

Parameters

Returns

Exceptions

Thrown when there is no attached Windows.UI.Xaml.UIElement instance.

Applies to

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

Applies to

StartAsync(UIElement, CancellationToken)

Starts the animations present in the current AnimationBuilder instance.

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.

Returns

Applies to