Class AnimateColor
- Namespace
- AlohaKit.Animations
- Assembly
- AlohaKit.Animations.dll
The AnimateColor class defines a mechanism to smoothly animate the color property of a target visual element using progress-based interpolation.
public class AnimateColor : AnimationBaseTrigger<Color>
- Inheritance
-
AnimateColor
- Inherited Members
Methods
Invoke(VisualElement)
Invokes the color animation on the target visual element. Uses interpolation to transition the specified property from the starting value (From) to the target value (To).
protected override void Invoke(VisualElement sender)
Parameters
senderVisualElementThe visual element on which the animation is applied.
Exceptions
- NullReferenceException
Thrown if the TargetProperty is null.