Animation Class

Summary

Tracks the progress of an animation.
Namespace
Avalonia.Animation
Interfaces
Base Types
graph BT Type-->Base0["AvaloniaObject"] click Base0 "/api/Avalonia/AvaloniaObject" Base0-->Base1["object"] Type-.->Interface0["IAvaloniaObject"] click Interface0 "/api/Avalonia/IAvaloniaObject" Type-.->Interface1["IAvaloniaObjectDebug"] click Interface1 "/api/Avalonia.Diagnostics/IAvaloniaObjectDebug" Type-.->Interface2["INotifyPropertyChanged"] Type-.->Interface3["IAnimation"] click Interface3 "/api/Avalonia.Animation/IAnimation" Type["Animation"] class Type type-node

Syntax

public class Animation : AvaloniaObject, IAvaloniaObject, IAvaloniaObjectDebug, 
    INotifyPropertyChanged, IAnimation

Events

Name Type Summary
PropertyChanged EventHandler<AvaloniaPropertyChangedEventArgs>
Raised when a AvaloniaProperty value changes on this object.
Inherited from AvaloniaObject

Fields

Name Constant Value Summary
DelayBetweenIterationsProperty
Defines the DelayBetweenIterations property.
static
DelayProperty
Defines the Delay property.
static
DurationProperty
Defines the Duration property.
static
EasingProperty
Defines the Easing property.
static
FillModeProperty
Defines the FillMode property.
static
IterationCountProperty
Defines the IterationCount property.
static
PlaybackDirectionProperty
Defines the PlaybackDirection property.
static
SpeedRatioProperty
Defines the SpeedRatio property.
static

Properties

Name Value Summary
Children KeyFrames
Gets the children of the Animation.
Delay TimeSpan
Gets or sets the initial delay time for this animation.
DelayBetweenIterations TimeSpan
Gets or sets the delay time in between iterations.
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.
InheritanceParent IAvaloniaObject
Gets or sets the parent object that inherited AvaloniaProperty values are inherited from.
Inherited from AvaloniaObject
IterationCount IterationCount
Gets or sets the repeat count for this animation.
PlaybackDirection PlaybackDirection
Gets or sets the playback direction for this animation.
RepeatCount string
Obsolete: Do not use this property, use IterationCount instead.
SpeedRatio double
Gets or sets the speed multiple for this animation.
this[AvaloniaProperty] object
Gets or sets the value of a AvaloniaProperty.
Inherited from AvaloniaObject
this[IndexerDescriptor] IBinding
Gets or sets a binding for a AvaloniaProperty.
Inherited from AvaloniaObject

Methods

Name Value Summary
AffectsValidation(AvaloniaProperty, AvaloniaProperty[]) void
Forces revalidation of properties when a property value changes.
Inherited from AvaloniaObject
static
Apply(Animatable, IClock, IObservable<bool>, Action) IDisposable
Bind(AvaloniaProperty, IObservable<object>, BindingPriority) IDisposable
Binds a AvaloniaProperty to an observable.
Inherited from AvaloniaObject
Bind<T>(AvaloniaProperty<T>, IObservable<T>, BindingPriority) IDisposable
Binds a AvaloniaProperty to an observable.
Inherited from AvaloniaObject
CheckAccess() bool
Inherited from AvaloniaObject
ClearValue(AvaloniaProperty) void
Clears a AvaloniaProperty's local value.
Inherited from AvaloniaObject
Equals(object) bool
Compares two objects using reference equality.
Inherited from AvaloniaObject
GetHashCode() int
Gets the hash code for the object.
Inherited from AvaloniaObject
GetValue(AvaloniaProperty) object
Gets a AvaloniaProperty value.
Inherited from AvaloniaObject
GetValue<T>(AvaloniaProperty<T>) T
Gets a AvaloniaProperty value.
Inherited from AvaloniaObject
IsAnimating(AvaloniaProperty) bool
Checks whether a AvaloniaProperty is animating.
Inherited from AvaloniaObject
IsSet(AvaloniaProperty) bool
Checks whether a AvaloniaProperty is set on this object.
Inherited from AvaloniaObject
OnPropertyChanged(AvaloniaPropertyChangedEventArgs) void
Called when a avalonia property changes on the object.
Inherited from AvaloniaObject
RegisterAnimator<TAnimator>(Func<AvaloniaProperty, bool>) void
static
Revalidate(AvaloniaProperty) void
Forces the specified property to be revalidated.
Inherited from AvaloniaObject
RunAsync(Animatable, IClock) Task
SetAndRaise<T>(AvaloniaProperty<T>, T, T) bool
Sets the backing field for a direct avalonia property, raising the PropertyChanged event if the value has changed.
Inherited from AvaloniaObject
SetValue(AvaloniaProperty, object, BindingPriority) void
Sets a AvaloniaProperty value.
Inherited from AvaloniaObject
SetValue<T>(AvaloniaProperty<T>, T, BindingPriority) void
Sets a AvaloniaProperty value.
Inherited from AvaloniaObject
UpdateDataValidation(AvaloniaProperty, BindingNotification) void
Called to update the validation state for properties for which data validation is enabled.
Inherited from AvaloniaObject
VerifyAccess() void
Inherited from AvaloniaObject

Extension Methods