Skip to main content

Start Method

Starts the animation.

Definition​

Namespace: Avalonia.Animation
Assembly: Avalonia.Base (in Avalonia.Base.dll)

Task Start(
Visual? from,
Visual? to,
bool forward,
CancellationToken cancellationToken
)
View Source

Parameters​

  Visual
The control that is being transitioned away from. May be null.
  Visual
The control that is being transitioned to. May be null.
  Boolean
If the animation is bidirectional, controls the direction of the animation.
  CancellationToken
Animation cancellation.

Return Value​

Task
A Task that tracks the progress of the animation.

See Also​

Reference​

IPageTransition Interface
Avalonia.Animation Namespace