Animation Class

Summary

Tracks the progress of an animation.
Namespace
Avalonia.Animation
Interfaces
Base Types
graph TD Base0["AvaloniaList<KeyFrame>"]-->Type Base1["object"]-->Base0 Interface0["IAvaloniaList<KeyFrame>"]-.->Type Interface1["IList<KeyFrame>"]-.->Type Interface2["ICollection<KeyFrame>"]-.->Type Interface3["IAvaloniaReadOnlyList<KeyFrame>"]-.->Type Interface4["IReadOnlyList<KeyFrame>"]-.->Type Interface5["IReadOnlyCollection<KeyFrame>"]-.->Type Interface6["IEnumerable<KeyFrame>"]-.->Type Interface7["INotifyCollectionChanged"]-.->Type Interface8["INotifyPropertyChanged"]-.->Type Interface9["IList"]-.->Type Interface10["ICollection"]-.->Type Interface11["IEnumerable"]-.->Type Interface12["INotifyCollectionChangedDebug"]-.->Type click Interface12 "/api/Avalonia.Diagnostics/INotifyCollectionChangedDebug" Interface13["IAnimation"]-.->Type click Interface13 "/api/Avalonia.Animation/IAnimation" Type["Animation"] class Type type-node

Syntax

public class Animation : AvaloniaList<KeyFrame>, IAvaloniaList<KeyFrame>, IList<KeyFrame>, 
    ICollection<KeyFrame>, IAvaloniaReadOnlyList<KeyFrame>, IReadOnlyList<KeyFrame>, 
    IReadOnlyCollection<KeyFrame>, IEnumerable<KeyFrame>, INotifyCollectionChanged, 
    INotifyPropertyChanged, IList, ICollection, IEnumerable, INotifyCollectionChangedDebug, 
    IAnimation

Properties

Name Value Summary
Delay TimeSpan
Gets or sets the delay time for this animation.
DelayBetweenIterations bool
Gets or sets a value indicating whether Delay will be applied between iterations of the animation.
Duration TimeSpan
Gets or sets the active time of this animation.
Easing Easing
Gets or sets the easing function to be used for this animation.
FillMode FillMode
Gets or sets the value fill mode for this animation.
PlaybackDirection PlaybackDirection
Gets or sets the playback direction for this animation.
RepeatCount RepeatCount
Gets or sets the repeat count for this animation.
SpeedRatio double
Gets or sets the speed multiple for this animation.

Methods

Extension Methods

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