Class MultiEdgeFadeAnimation
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
edgesIEnumerable<Edge>startOpacitydoubleendOpacitydoubledurationdoubleeasingFunc<double, double>onUpdateAction<IReadOnlyList<Edge>, double>onCompleteAction
Properties
CurrentOpacity
Gets the current opacity value.
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.