Skip to main content

Rotate3DTransition Class

Definition

Assembly:Avalonia.Base
Package:Avalonia
public class Rotate3DTransition

Inheritance: object -> PageSlide -> Rotate3DTransition

Constructors

NameDescription
Rotate3DTransition (2 overloads)Initializes a new instance of the Avalonia.Animation.Rotate3DTransition class.

Rotate3DTransition overloads

Rotate3DTransition Constructor

Initializes a new instance of the Avalonia.Animation.Rotate3DTransition class.

public Rotate3DTransition()

Rotate3DTransition Constructor

public Rotate3DTransition(TimeSpan duration, Avalonia.Animation.PageSlide.SlideAxis orientation, Nullable<double> depth)
Parameters

duration TimeSpan

orientation Avalonia.Animation.PageSlide.SlideAxis

depth Nullable<double>

Methods

NameDescription
ResetNo summary available.
StartNo summary available.
UpdateNo summary available.

Reset Method

public void Reset(Avalonia.Visual visual)

Parameters

visual Avalonia.Visual

Start Method

public System.Threading.Tasks.Task Start(Avalonia.Visual from, Avalonia.Visual to, bool forward, System.Threading.CancellationToken cancellationToken)

Parameters

from Avalonia.Visual

to Avalonia.Visual

forward bool

cancellationToken System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task

Update Method

public void Update(double progress, Avalonia.Visual from, Avalonia.Visual to, bool forward, double pageLength, System.Collections.Generic.IReadOnlyList<Avalonia.Animation.PageTransitionItem> visibleItems)

Parameters

progress double

from Avalonia.Visual

to Avalonia.Visual

forward bool

pageLength double

visibleItems System.Collections.Generic.IReadOnlyList<Avalonia.Animation.PageTransitionItem>

Properties

NameDescription
DepthDefines 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.
DurationGets the duration of the animation. Inherited from PageSlide.
FillModeGets or sets the fill mode applied to both slide animations. Defaults to Avalonia.Animation.FillMode.Forward, which keeps the final transform value after the animation completes and prevents a one-frame flash where the outgoing element snaps back to its original position before IsVisible = false takes effect. Inherited from PageSlide.
OrientationGets the orientation of the animation. Inherited from PageSlide.
SlideInEasingGets or sets element entrance easing. Inherited from PageSlide.
SlideOutEasingGets or sets element exit easing. Inherited from PageSlide.

Depth Property

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 Nullable<double> Depth { get; set; }