Class GroupChildrenFadeAnimation
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
childrenIEnumerable<Node>connectedEdgesIEnumerable<Edge>fadingInbooldurationdoubleonUpdateAction<IReadOnlyList<Node>, IReadOnlyList<Edge>, double>onCompleteAction
Properties
CurrentOpacity
Gets the current opacity.
public double CurrentOpacity { get; }
Property Value
IsComplete
Gets whether the animation has completed.
public bool IsComplete { get; }
Property Value
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
deltaTimedoubleTime elapsed since last update in seconds.