CrossFade Class

Summary

Defines a cross-fade animation between two IVisuals.
Namespace
Avalonia.Animation
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IPageTransition"] click Interface0 "/api/Avalonia.Animation/IPageTransition" Type["CrossFade"] class Type type-node

Syntax

public class CrossFade : IPageTransition

Constructors

Name Summary
CrossFade() Initializes a new instance of the CrossFade class.
CrossFade(TimeSpan) Initializes a new instance of the CrossFade class.

Properties

Name Value Summary
Duration TimeSpan
Gets the duration of the animation.

Methods

Name Value Summary
Start(Visual, Visual) Task
Starts the animation.