Table of Contents

Interface IPageTransition

Namespace
Avalonia.Animation
Assembly
Avalonia.Base.dll

Interface for animations that transition between two pages.

public interface IPageTransition

Methods

Start(Visual?, Visual?, bool, CancellationToken)

Starts the animation.

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

Parameters

from Visual

The control that is being transitioned away from. May be null.

to 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 CancellationToken

Animation cancellation.

Returns

Task

A Task that tracks the progress of the animation.