Skip to main content

IPageTransition Interface

Definition​

Assembly:Avalonia.Base
Package:Avalonia

Interface for animations that transition between two pages.

public interface IPageTransition

Methods​

NameDescription
StartStarts 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.

to Avalonia.Visual

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.