BaseBrushAnimator Class

Summary

Animator that handles all animations on properties with IBrush as their type and redirect them to the properly registered animators in this class.
Namespace
Avalonia.Animation.Animators
Interfaces
Base Types
graph BT Type-->Base0["Animator<IBrush>"] Base0-->Base1["AvaloniaList<AnimatorKeyFrame>"] Base1-->Base2["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["BaseBrushAnimator"] class Type type-node

Syntax

public class BaseBrushAnimator : Animator<IBrush>, IAvaloniaList<AnimatorKeyFrame>, 
    IAvaloniaReadOnlyList<AnimatorKeyFrame>, IReadOnlyList<AnimatorKeyFrame>, 
    IReadOnlyCollection<AnimatorKeyFrame>, INotifyCollectionChanged, INotifyPropertyChanged, IList, 
    ICollection, INotifyCollectionChangedDebug, IAnimator, IList<AnimatorKeyFrame>, 
    ICollection<AnimatorKeyFrame>, IEnumerable<AnimatorKeyFrame>, IEnumerable

Methods

Name Value Summary
Apply(Animation, Animatable, IClock, IObservable<bool>, Action) IDisposable
Applies the current KeyFrame group to the specified control.
Interpolate(double, IBrush, IBrush) IBrush
Interpolates in-between two key values given the desired progress time.
RegisterBrushAnimator<TAnimator>(Func<Type, bool>) void
Register an Animator<T> that handles a specific IBrush's descendant value type.
static

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.