Class EntranceTransition
- Namespace
- AlohaKit.Animations
- Assembly
- AlohaKit.Animations.dll
The EntranceTransition class animates visual elements with an entrance effect that includes translation and opacity adjustments. It handles animations for the target element and its child elements.
public class EntranceTransition : Behavior<VisualElement>, INotifyPropertyChanged
- Inheritance
-
EntranceTransition
- Implements
- Inherited Members
Fields
DurationProperty
Bindable property for specifying the duration of the animation in milliseconds.
public static readonly BindableProperty DurationProperty
Field Value
Properties
Duration
Gets or sets the duration of the entrance animation, represented as a string in milliseconds.
public string Duration { get; set; }
Property Value
Methods
OnAttachedTo(VisualElement)
Called when the behavior is attached to a visual element. Initializes child elements and subscribes to property changes.
protected override void OnAttachedTo(VisualElement bindable)
Parameters
bindableVisualElementThe visual element to which the behavior is attached.
OnDetachingFrom(VisualElement)
Called when the behavior is detached from a visual element. Stops animations and clears references to the associated object and its children.
protected override void OnDetachingFrom(VisualElement bindable)
Parameters
bindableVisualElementThe visual element from which the behavior is detached.