Table of Contents

Class ParallelAnimation

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

A group of animations that run in parallel.

public class ParallelAnimation : IAnimation
Inheritance
ParallelAnimation
Implements
Inherited Members

Constructors

ParallelAnimation(params IAnimation[])

Creates a new parallel animation.

public ParallelAnimation(params IAnimation[] animations)

Parameters

animations IAnimation[]

The animations to run in parallel.

ParallelAnimation(IEnumerable<IAnimation>, Action?)

Creates a new parallel animation.

public ParallelAnimation(IEnumerable<IAnimation> animations, Action? onComplete = null)

Parameters

animations IEnumerable<IAnimation>

The animations to run in parallel.

onComplete Action

Callback when all animations complete.

Properties

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.