Table of Contents

Class Rotate3DTransition

Namespace
Avalonia.Animation
Assembly
Avalonia.Base.dll
public class Rotate3DTransition : PageSlide, IPageTransition
Inheritance
Rotate3DTransition
Implements
Inherited Members

Constructors

Rotate3DTransition()

Creates a new instance of the Rotate3DTransition

public Rotate3DTransition()

Rotate3DTransition(TimeSpan, SlideAxis, double?)

Creates a new instance of the Rotate3DTransition

public Rotate3DTransition(TimeSpan duration, PageSlide.SlideAxis orientation = SlideAxis.Horizontal, double? depth = null)

Parameters

duration TimeSpan

How long the rotation should take place

orientation PageSlide.SlideAxis

The orientation of the rotation

depth double?

Defines the depth of the 3D Effect. If null, depth will be calculated automatically from the width or height of the common parent of the visual being rotated

Properties

Depth

Defines the depth of the 3D Effect. If null, depth will be calculated automatically from the width or height of the common parent of the visual being rotated.

public double? Depth { get; set; }

Property Value

double?

Methods

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

Starts the animation.

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