Table of Contents

Class MultiEdgeFadeAnimation

Namespace
FlowGraph.Avalonia.Animation
Assembly
FlowGraph.Avalonia.dll

Animates multiple edges simultaneously with the same animation parameters.

public class MultiEdgeFadeAnimation : IAnimation
Inheritance
MultiEdgeFadeAnimation
Implements
Inherited Members

Constructors

MultiEdgeFadeAnimation(IEnumerable<Edge>, double, double, double, Func<double, double>?, Action<IReadOnlyList<Edge>, double>?, Action?)

Creates a new multi-edge fade animation.

public MultiEdgeFadeAnimation(IEnumerable<Edge> edges, double startOpacity, double endOpacity, double duration = 0.3, Func<double, double>? easing = null, Action<IReadOnlyList<Edge>, double>? onUpdate = null, Action? onComplete = null)

Parameters

edges IEnumerable<Edge>
startOpacity double
endOpacity double
duration double
easing Func<double, double>
onUpdate Action<IReadOnlyList<Edge>, double>
onComplete Action

Properties

CurrentOpacity

Gets the current opacity value.

public double CurrentOpacity { get; }

Property Value

double

IsComplete

Gets whether the animation has completed.

public bool IsComplete { get; }

Property Value

bool

Methods

Cancel()

Called when the animation completes or is cancelled.

public void Cancel()

Update(double)

Updates the animation with the elapsed time since the last frame.

public void Update(double deltaTime)

Parameters

deltaTime double

Time elapsed since last update in seconds.