Animator<T> Class

Summary

Base class for Animator<T> objects
graph BT Type-->Base0["AvaloniaList<AnimatorKeyFrame>"] Base0-->Base1["object"] Type-.->Interface0["IAvaloniaList<AnimatorKeyFrame>"] Type-.->Interface1["IAvaloniaReadOnlyList<AnimatorKeyFrame>"] Type-.->Interface2["IReadOnlyList<AnimatorKeyFrame>"] Type-.->Interface3["IReadOnlyCollection<AnimatorKeyFrame>"] Type-.->Interface4["INotifyCollectionChanged"] Type-.->Interface5["INotifyPropertyChanged"] Type-.->Interface6["IList"] Type-.->Interface7["ICollection"] Type-.->Interface8["INotifyCollectionChangedDebug"] click Interface8 "/api/Avalonia.Diagnostics/INotifyCollectionChangedDebug" Type-.->Interface9["IAnimator"] click Interface9 "/api/Avalonia.Animation/IAnimator" Type-.->Interface10["IList<AnimatorKeyFrame>"] Type-.->Interface11["ICollection<AnimatorKeyFrame>"] Type-.->Interface12["IEnumerable<AnimatorKeyFrame>"] Type-.->Interface13["IEnumerable"] Type["Animator<T>"] class Type type-node Derived0["ByteAnimator"]-->Type click Derived0 "/api/Avalonia.Animation.Animators/ByteAnimator" Derived1["DecimalAnimator"]-->Type click Derived1 "/api/Avalonia.Animation.Animators/DecimalAnimator" Derived2["DoubleAnimator"]-->Type click Derived2 "/api/Avalonia.Animation.Animators/DoubleAnimator" Derived3["SolidColorBrushAnimator"]-->Type click Derived3 "/api/Avalonia.Animation.Animators/SolidColorBrushAnimator" Derived4["ColorAnimator"]-->Type click Derived4 "/api/Avalonia.Animation.Animators/ColorAnimator" Derived5["BoolAnimator"]-->Type click Derived5 "/api/Avalonia.Animation.Animators/BoolAnimator" Derived6["ThicknessAnimator"]-->Type click Derived6 "/api/Avalonia.Animation.Animators/ThicknessAnimator" Derived7["UInt32Animator"]-->Type click Derived7 "/api/Avalonia.Animation.Animators/UInt32Animator" Derived8["Int32Animator"]-->Type click Derived8 "/api/Avalonia.Animation.Animators/Int32Animator" Derived9["VectorAnimator"]-->Type click Derived9 "/api/Avalonia.Animation.Animators/VectorAnimator" Derived10["FloatAnimator"]-->Type click Derived10 "/api/Avalonia.Animation.Animators/FloatAnimator" Derived11["UInt16Animator"]-->Type click Derived11 "/api/Avalonia.Animation.Animators/UInt16Animator" Derived12["PointAnimator"]-->Type click Derived12 "/api/Avalonia.Animation.Animators/PointAnimator" Derived13["TransformAnimator"]-->Type click Derived13 "/api/Avalonia.Animation.Animators/TransformAnimator" Derived14["RectAnimator"]-->Type click Derived14 "/api/Avalonia.Animation.Animators/RectAnimator" Derived15["UInt64Animator"]-->Type click Derived15 "/api/Avalonia.Animation.Animators/UInt64Animator" Derived16["Int16Animator"]-->Type click Derived16 "/api/Avalonia.Animation.Animators/Int16Animator" Derived17["SizeAnimator"]-->Type click Derived17 "/api/Avalonia.Animation.Animators/SizeAnimator" Derived18["Int64Animator"]-->Type click Derived18 "/api/Avalonia.Animation.Animators/Int64Animator" Derived19["CornerRadiusAnimator"]-->Type click Derived19 "/api/Avalonia.Animation.Animators/CornerRadiusAnimator"

Syntax

public abstract class Animator<T> : AvaloniaList<AnimatorKeyFrame>, 
    IAvaloniaList<AnimatorKeyFrame>, IAvaloniaReadOnlyList<AnimatorKeyFrame>, 
    IReadOnlyList<AnimatorKeyFrame>, IReadOnlyCollection<AnimatorKeyFrame>, 
    INotifyCollectionChanged, INotifyPropertyChanged, IList, ICollection, 
    INotifyCollectionChangedDebug, IAnimator, IList<AnimatorKeyFrame>, 
    ICollection<AnimatorKeyFrame>, IEnumerable<AnimatorKeyFrame>, IEnumerable

Type Parameters

Name Description
T

Constructors

Name Summary
Animator()

Properties

Name Value Summary
Property AvaloniaProperty
Gets or sets the target property for the keyframe.

Methods

Name Value Summary
Apply(Animation, Animatable, IClock, IObservable<bool>, Action) IDisposable
Applies the current KeyFrame group to the specified control.
Interpolate(double, T, T) T
Interpolates in-between two key values given the desired progress time.
InterpolationHandler(double, T) T

Extension Methods

Name Value Summary
CreateDerivedList<AnimatorKeyFrame, TDerived>(Func<AnimatorKeyFrame, TDerived>) IAvaloniaReadOnlyList<TDerived>
ForEachItem<AnimatorKeyFrame>(Action<int, AnimatorKeyFrame>, Action<int, AnimatorKeyFrame>, Action, bool) IDisposable
Invokes an action for each item in a collection and subsequently each item added or removed from the collection.
ForEachItem<AnimatorKeyFrame>(Action<AnimatorKeyFrame>, Action<AnimatorKeyFrame>, Action, bool) IDisposable
Invokes an action for each item in a collection and subsequently each item added or removed from the collection.
TrackItemPropertyChanged<AnimatorKeyFrame>(Action<Tuple<object, PropertyChangedEventArgs>>) IDisposable
Listens for property changed events from all items in a collection.