Skip to main content

Animation Class

Definition​

Assembly:Avalonia.Base
Package:Avalonia

Tracks the progress of an animation.

public class Animation

Inheritance: object -> AvaloniaObject -> Animation

Implements:IAnimation

Constructors​

NameDescription
AnimationNo summary available.

Animation Constructor​

public Animation()

Methods​

NameDescription
Bind (8 overloads)Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject.
CheckAccessReturns a value indicating whether the current thread is the UI thread. Inherited from AvaloniaObject.
ClearValue (4 overloads)Clears a Avalonia.AvaloniaProperty's local value. Inherited from AvaloniaObject.
CoerceValueCoerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject.
EqualsCompares two objects using reference equality. Inherited from AvaloniaObject.
GetBaseValueInherited from AvaloniaObject.
GetHashCodeGets the hash code for the object. Inherited from AvaloniaObject.
GetValue (3 overloads)Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
IsAnimatingChecks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject.
IsSetChecks whether a Avalonia.AvaloniaProperty is set on this object. Inherited from AvaloniaObject.
RegisterCustomAnimatorNo summary available.
RunAsyncNo summary available.
SetAnimatorSets the value of the Animator attached property for a setter.
SetCurrentValue (2 overloads)Sets the value of a dependency property without changing its value source. Inherited from AvaloniaObject.
SetValue (3 overloads)Sets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
VerifyAccessChecks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject.

RegisterCustomAnimator Method​

public void RegisterCustomAnimator<T, TAnimator>()

Type Parameters​

T

TAnimator

RunAsync Method​

public System.Threading.Tasks.Task RunAsync(Avalonia.Animation.Animatable control, System.Threading.CancellationToken cancellationToken)

Parameters​

control Avalonia.Animation.Animatable

cancellationToken System.Threading.CancellationToken

Returns​

System.Threading.Tasks.Task

SetAnimator Method​

Sets the value of the Animator attached property for a setter.

public void SetAnimator(Avalonia.Animation.IAnimationSetter setter, Avalonia.Animation.ICustomAnimator value)

Parameters​

setter Avalonia.Animation.IAnimationSetter

The animation setter.

value Avalonia.Animation.ICustomAnimator

The property animator value.

Properties​

NameDescription
ChildrenGets the children of the Avalonia.Animation.Animation.
DelayGets or sets the initial delay time for this animation.
DelayBetweenIterationsGets or sets the delay time in between iterations.
DispatcherReturns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject.
DurationGets or sets the active time of this animation.
EasingGets or sets the easing function to be used for this animation.
FillModeGets or sets the value fill mode for this animation.
ItemInherited from AvaloniaObject.
IterationCountGets or sets the repeat count for this animation.
PlaybackBehaviorGets or sets the playback behavior for this animation. When set to Avalonia.Animation.PlaybackBehavior.Auto, manually started animations and animations targeting Avalonia.Visual.IsVisibleProperty always play, while style-applied animations pause when the control is not effectively visible (see Avalonia.Visual.IsEffectivelyVisible).
PlaybackDirectionGets or sets the playback direction for this animation.
SpeedRatioGets or sets the speed multiple for this animation.

Children Property​

Gets the children of the Avalonia.Animation.Animation.

public Avalonia.Animation.KeyFrames Children { get; set; }

Delay Property​

Gets or sets the initial delay time for this animation.

public TimeSpan Delay { get; set; }

DelayBetweenIterations Property​

Gets or sets the delay time in between iterations.

public TimeSpan DelayBetweenIterations { get; set; }

Duration Property​

Gets or sets the active time of this animation.

public TimeSpan Duration { get; set; }

Easing Property​

Gets or sets the easing function to be used for this animation.

public Avalonia.Animation.Easings.Easing Easing { get; set; }

FillMode Property​

Gets or sets the value fill mode for this animation.

public Avalonia.Animation.FillMode FillMode { get; set; }

IterationCount Property​

Gets or sets the repeat count for this animation.

public Avalonia.Animation.IterationCount IterationCount { get; set; }

PlaybackBehavior Property​

Gets or sets the playback behavior for this animation. When set to Avalonia.Animation.PlaybackBehavior.Auto, manually started animations and animations targeting Avalonia.Visual.IsVisibleProperty always play, while style-applied animations pause when the control is not effectively visible (see Avalonia.Visual.IsEffectivelyVisible).

public Avalonia.Animation.PlaybackBehavior PlaybackBehavior { get; set; }

PlaybackDirection Property​

Gets or sets the playback direction for this animation.

public Avalonia.Animation.PlaybackDirection PlaybackDirection { get; set; }

SpeedRatio Property​

Gets or sets the speed multiple for this animation.

public double SpeedRatio { get; set; }

Fields​

DelayBetweenIterationsProperty Field​

Defines the Avalonia.Animation.Animation.DelayBetweenIterations property.

public Avalonia.DirectProperty<TOwner,TValue><Avalonia.Animation.Animation, TimeSpan> DelayBetweenIterationsProperty

DelayProperty Field​

Defines the Avalonia.Animation.Animation.Delay property.

public Avalonia.DirectProperty<TOwner,TValue><Avalonia.Animation.Animation, TimeSpan> DelayProperty

DurationProperty Field​

Defines the Avalonia.Animation.Animation.Duration property.

public Avalonia.DirectProperty<TOwner,TValue><Avalonia.Animation.Animation, TimeSpan> DurationProperty

EasingProperty Field​

Defines the Avalonia.Animation.Animation.Easing property.

public Avalonia.DirectProperty<TOwner,TValue><Avalonia.Animation.Animation, Avalonia.Animation.Easings.Easing> EasingProperty

FillModeProperty Field​

Defines the Avalonia.Animation.Animation.FillMode property.

public Avalonia.DirectProperty<TOwner,TValue><Avalonia.Animation.Animation, Avalonia.Animation.FillMode> FillModeProperty

IterationCountProperty Field​

Defines the Avalonia.Animation.Animation.IterationCount property.

public Avalonia.DirectProperty<TOwner,TValue><Avalonia.Animation.Animation, Avalonia.Animation.IterationCount> IterationCountProperty

PlaybackBehaviorProperty Field​

Defines the Avalonia.Animation.Animation.PlaybackBehavior property.

public Avalonia.DirectProperty<TOwner,TValue><Avalonia.Animation.Animation, Avalonia.Animation.PlaybackBehavior> PlaybackBehaviorProperty

PlaybackDirectionProperty Field​

Defines the Avalonia.Animation.Animation.PlaybackDirection property.

public Avalonia.DirectProperty<TOwner,TValue><Avalonia.Animation.Animation, Avalonia.Animation.PlaybackDirection> PlaybackDirectionProperty

SpeedRatioProperty Field​

Defines the Avalonia.Animation.Animation.SpeedRatio property.

public Avalonia.DirectProperty<TOwner,TValue><Avalonia.Animation.Animation, double> SpeedRatioProperty

Events​

NameDescription
PropertyChangedRaised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject.