IPageTransition Interface
Definition
Interface for animations that transition between two pages.
public interface IPageTransition
Methods
| Name | Description |
|---|---|
| Start | Starts the animation. |
Start Method
Starts the animation.
public System.Threading.Tasks.Task Start(Avalonia.Visual from, Avalonia.Visual to, bool forward, System.Threading.CancellationToken cancellationToken)
Parameters
from Avalonia.Visual
The control that is being transitioned away from. May be null.
The control that is being transitioned to. May be null.
forward bool
If the animation is bidirectional, controls the direction of the animation.
cancellationToken System.Threading.CancellationToken
Animation cancellation.
Returns
System.Threading.Tasks.Task
A System.Threading.Tasks.Task that tracks the progress of the animation.