Table of Contents

Class BeginAnimationBehavior

Namespace
AlohaKit.Animations
Assembly
AlohaKit.Animations.dll

The BeginAnimationBehavior class provides functionality to automatically trigger an animation when the behavior is attached to a visual element. It ensures the animation is associated with the element and starts after a short delay.

public class BeginAnimationBehavior : Behavior<VisualElement>, INotifyPropertyChanged
Inheritance
BeginAnimationBehavior
Implements
Inherited Members

Fields

AnimationProperty

Bindable property for specifying the animation to be executed when the behavior is attached.

public static readonly BindableProperty AnimationProperty

Field Value

BindableProperty

Properties

Animation

Gets or sets the animation to be executed when the behavior is attached.

public AnimationBase Animation { get; set; }

Property Value

AnimationBase

Methods

OnAttachedTo(VisualElement)

Called when the behavior is attached to a visual element. Associates the animation with the element and begins the animation.

protected override void OnAttachedTo(VisualElement bindable)

Parameters

bindable VisualElement

The visual element to which the behavior is attached.

OnDetachingFrom(VisualElement)

Called when the behavior is detached from a visual element. Clears the association with the visual element.

protected override void OnDetachingFrom(VisualElement bindable)

Parameters

bindable VisualElement

The visual element from which the behavior is detached.