Rotate3DTransition Class
Definition
public class Rotate3DTransition
Constructors
| Name | Description |
|---|---|
| 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
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
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
forward bool
pageLength double
visibleItems System.Collections.Generic.IReadOnlyList<Avalonia.Animation.PageTransitionItem>
Properties
| Name | Description |
|---|---|
| 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. |
| Duration | Gets the duration of the animation. Inherited from PageSlide. |
| FillMode | Gets 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. |
| Orientation | Gets the orientation of the animation. Inherited from PageSlide. |
| SlideInEasing | Gets or sets element entrance easing. Inherited from PageSlide. |
| SlideOutEasing | Gets 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; }