Table of Contents

Class AnimationExtensions

Namespace
AlohaKit.Animations
Assembly
AlohaKit.Animations.dll

Contains extension methods to simplify applying animations to visual elements.

public static class AnimationExtensions
Inheritance
AnimationExtensions
Inherited Members

Methods

Animate(VisualElement, AnimationBase)

Animates the specified VisualElement using the provided AnimationBase object.

public static Task<bool> Animate(this VisualElement visualElement, AnimationBase animation)

Parameters

visualElement VisualElement

The target visual element to be animated.

animation AnimationBase

The animation to apply to the visual element.

Returns

Task<bool>

A Task representing the asynchronous operation. Returns true if the animation completes successfully; false otherwise.