Skip to main content

Start Method

Starts the animation.

Definition

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

public virtual 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.

Implements

IPageTransition.Start(Visual, Visual, Boolean, CancellationToken)

See Also

Reference

PageSlide Class
Avalonia.Animation Namespace