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["UInt64Animator"]-->Type click Derived0 "/api/Avalonia.Animation.Animators/UInt64Animator" Derived1["CornerRadiusAnimator"]-->Type click Derived1 "/api/Avalonia.Animation.Animators/CornerRadiusAnimator" Derived2["BoolAnimator"]-->Type click Derived2 "/api/Avalonia.Animation.Animators/BoolAnimator" Derived3["DoubleAnimator"]-->Type click Derived3 "/api/Avalonia.Animation.Animators/DoubleAnimator" Derived4["BaseBrushAnimator"]-->Type click Derived4 "/api/Avalonia.Animation.Animators/BaseBrushAnimator" Derived5["RectAnimator"]-->Type click Derived5 "/api/Avalonia.Animation.Animators/RectAnimator" Derived6["VectorAnimator"]-->Type click Derived6 "/api/Avalonia.Animation.Animators/VectorAnimator" Derived7["ThicknessAnimator"]-->Type click Derived7 "/api/Avalonia.Animation.Animators/ThicknessAnimator" Derived8["UInt16Animator"]-->Type click Derived8 "/api/Avalonia.Animation.Animators/UInt16Animator" Derived9["TransformAnimator"]-->Type click Derived9 "/api/Avalonia.Animation.Animators/TransformAnimator" Derived10["DecimalAnimator"]-->Type click Derived10 "/api/Avalonia.Animation.Animators/DecimalAnimator" Derived11["ColorAnimator"]-->Type click Derived11 "/api/Avalonia.Animation.Animators/ColorAnimator" Derived12["BoxShadowsAnimator"]-->Type click Derived12 "/api/Avalonia.Animation.Animators/BoxShadowsAnimator" Derived13["ByteAnimator"]-->Type click Derived13 "/api/Avalonia.Animation.Animators/ByteAnimator" Derived14["FloatAnimator"]-->Type click Derived14 "/api/Avalonia.Animation.Animators/FloatAnimator" Derived15["BoxShadowAnimator"]-->Type click Derived15 "/api/Avalonia.Animation.Animators/BoxShadowAnimator" Derived16["SizeAnimator"]-->Type click Derived16 "/api/Avalonia.Animation.Animators/SizeAnimator" Derived17["SolidColorBrushAnimator"]-->Type click Derived17 "/api/Avalonia.Animation.Animators/SolidColorBrushAnimator" Derived18["PointAnimator"]-->Type click Derived18 "/api/Avalonia.Animation.Animators/PointAnimator" Derived19["Int32Animator"]-->Type click Derived19 "/api/Avalonia.Animation.Animators/Int32Animator" Derived20["Int64Animator"]-->Type click Derived20 "/api/Avalonia.Animation.Animators/Int64Animator" Derived21["TransformOperationsAnimator"]-->Type click Derived21 "/api/Avalonia.Animation.Animators/TransformOperationsAnimator" Derived22["Int16Animator"]-->Type click Derived22 "/api/Avalonia.Animation.Animators/Int16Animator" Derived23["ISolidColorBrushAnimator"]-->Type click Derived23 "/api/Avalonia.Animation.Animators/ISolidColorBrushAnimator" Derived24["UInt32Animator"]-->Type click Derived24 "/api/Avalonia.Animation.Animators/UInt32Animator"

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.
BindAnimation(Animatable, IObservable<T>) IDisposable
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.