Table of Contents

Class AnimationBaseTrigger<T>

Namespace
AlohaKit.Animations
Assembly
AlohaKit.Animations.dll

The AnimationBaseTrigger class provides the foundation for creating custom animation triggers by defining common properties, methods, and behavior for animations.

public abstract class AnimationBaseTrigger<T> : TriggerAction<VisualElement>

Type Parameters

T

The type of the property to be animated.

Inheritance
AnimationBaseTrigger<T>
Derived
Inherited Members

Properties

Delay

Gets or sets the delay before the animation begins, in milliseconds.

public int Delay { get; set; }

Property Value

int

Duration

Gets or sets the duration of the animation in milliseconds.

public uint Duration { get; set; }

Property Value

uint

Easing

Gets or sets the easing function to apply to the animation.

public EasingType Easing { get; set; }

Property Value

EasingType

From

Gets or sets the starting value of the animation.

public T From { get; set; }

Property Value

T

TargetProperty

Gets or sets the bindable property that will be animated.

public BindableProperty TargetProperty { get; set; }

Property Value

BindableProperty

To

Gets or sets the target value of the animation.

public T To { get; set; }

Property Value

T

Methods

Invoke(VisualElement)

Invokes the animation on the specified visual element. This method must be implemented in derived classes.

protected override void Invoke(VisualElement sender)

Parameters

sender VisualElement

The visual element on which the animation is applied.

Exceptions

NotImplementedException

Thrown to indicate that the method must be implemented in derived classes.

SetDefaultFrom(T)

Sets the default "From" value for the animation if it has not been explicitly specified.

protected void SetDefaultFrom(T property)

Parameters

property T

The current property value to use as the default "From" value.