Table of Contents

Class GroupChildrenFadeAnimation

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

Animates children of a group fading in or out.

public class GroupChildrenFadeAnimation : IAnimation
Inheritance
GroupChildrenFadeAnimation
Implements
Inherited Members

Constructors

GroupChildrenFadeAnimation(IEnumerable<Node>, IEnumerable<Edge>, bool, double, Action<IReadOnlyList<Node>, IReadOnlyList<Edge>, double>?, Action?)

Creates a new group children fade animation.

public GroupChildrenFadeAnimation(IEnumerable<Node> children, IEnumerable<Edge> connectedEdges, bool fadingIn, double duration = 0.2, Action<IReadOnlyList<Node>, IReadOnlyList<Edge>, double>? onUpdate = null, Action? onComplete = null)

Parameters

children IEnumerable<Node>
connectedEdges IEnumerable<Edge>
fadingIn bool
duration double
onUpdate Action<IReadOnlyList<Node>, IReadOnlyList<Edge>, double>
onComplete Action

Properties

CurrentOpacity

Gets the current opacity.

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.