Class AnimationBase
- Namespace
- AlohaKit.Animations
- Assembly
- AlohaKit.Animations.dll
The AnimationBase class serves as an abstract base for animations, offering configurable properties such as duration, delay, easing, and repeat behavior.
public abstract class AnimationBase : BindableObject, INotifyPropertyChanged
- Inheritance
-
AnimationBase
- Implements
- Derived
- Inherited Members
Fields
DelayProperty
Bindable property for specifying a delay before the animation begins, in milliseconds.
public static readonly BindableProperty DelayProperty
Field Value
DurationProperty
Bindable property for specifying the duration of the animation in milliseconds.
public static readonly BindableProperty DurationProperty
Field Value
EasingProperty
Bindable property for specifying the easing type of the animation.
public static readonly BindableProperty EasingProperty
Field Value
RepeatForeverProperty
Bindable property for specifying whether the animation should repeat indefinitely.
public static readonly BindableProperty RepeatForeverProperty
Field Value
TargetProperty
Bindable property for specifying the target visual element of the animation.
public static readonly BindableProperty TargetProperty
Field Value
Properties
Delay
Gets or sets the delay before the animation begins, in milliseconds.
public int Delay { get; set; }
Property Value
Duration
Gets or sets the duration of the animation, represented as a string in milliseconds.
public string Duration { get; set; }
Property Value
Easing
Gets or sets the easing type of the animation.
public EasingType Easing { get; set; }
Property Value
RepeatForever
Gets or sets a value indicating whether the animation should repeat indefinitely.
public bool RepeatForever { get; set; }
Property Value
Target
Gets or sets the target visual element for the animation.
public VisualElement Target { get; set; }
Property Value
Methods
Begin()
public Task Begin()
Returns
BeginAnimation()
protected abstract Task BeginAnimation()
Returns
End()
public void End()