4using System.Threading.Tasks;
5using Microsoft.Maui.Controls;
14 private readonly IReadOnlyList<IViewAnimation> children;
25 this.children = Children ??
throw new ArgumentNullException(nameof(Children));
31 ArgumentNullException.ThrowIfNull(Target);
32 ArgumentNullException.ThrowIfNull(Context);
34 if (this.children.Count == 0)
39 List<Task> Tasks =
new List<Task>(this.children.Count);
42 Task Execution = Child.
RunAsync(Target, Context, Options, Token);
45 await Task.WhenAll(Tasks).ConfigureAwait(
false);
51 await Child.
RunAsync(Target, Context, Options, Token).ConfigureAwait(
false);
Options applied for an individual animation execution.
Represents an animation composed of child animations.
async Task RunAsync(VisualElement Target, IAnimationContext Context, AnimationOptions? Options, CancellationToken Token)
Executes the animation against the specified target. Task tracking execution.
CompositeViewAnimation(AnimationCompositionMode Mode, IReadOnlyList< IViewAnimation > Children)
Initializes a new instance of the CompositeViewAnimation class.
Represents contextual information required when executing an animation.
Defines a view-based animation executor.
Task RunAsync(VisualElement Target, IAnimationContext Context, AnimationOptions? Options, CancellationToken Token)
Executes the animation against the specified target.
AnimationCompositionMode
Defines how composite animations should execute child animations.