Class Animation
Tracks the progress of an animation.
public sealed class Animation : AvaloniaObject, INotifyPropertyChanged, IAnimation
- Inheritance
-
Animation
- Implements
- Inherited Members
- Extension Methods
Constructors
Animation()
public Animation()
Fields
DelayBetweenIterationsProperty
Defines the DelayBetweenIterations property.
public static readonly DirectProperty<Animation, TimeSpan> DelayBetweenIterationsProperty
Field Value
DelayProperty
Defines the Delay property.
public static readonly DirectProperty<Animation, TimeSpan> DelayProperty
Field Value
DurationProperty
Defines the Duration property.
public static readonly DirectProperty<Animation, TimeSpan> DurationProperty
Field Value
EasingProperty
Defines the Easing property.
public static readonly DirectProperty<Animation, Easing> EasingProperty
Field Value
FillModeProperty
Defines the FillMode property.
public static readonly DirectProperty<Animation, FillMode> FillModeProperty
Field Value
IterationCountProperty
Defines the IterationCount property.
public static readonly DirectProperty<Animation, IterationCount> IterationCountProperty
Field Value
PlaybackDirectionProperty
Defines the PlaybackDirection property.
public static readonly DirectProperty<Animation, PlaybackDirection> PlaybackDirectionProperty
Field Value
SpeedRatioProperty
Defines the SpeedRatio property.
public static readonly DirectProperty<Animation, double> SpeedRatioProperty
Field Value
Properties
Children
Gets the children of the Animation.
[Content]
public KeyFrames Children { get; }
Property Value
Delay
Gets or sets the initial delay time for this animation.
public TimeSpan Delay { get; set; }
Property Value
DelayBetweenIterations
Gets or sets the delay time in between iterations.
public TimeSpan DelayBetweenIterations { get; set; }
Property Value
Duration
Gets or sets the active time of this animation.
public TimeSpan Duration { get; set; }
Property Value
Easing
Gets or sets the easing function to be used for this animation.
public Easing Easing { get; set; }
Property Value
FillMode
Gets or sets the value fill mode for this animation.
public FillMode FillMode { get; set; }
Property Value
IterationCount
Gets or sets the repeat count for this animation.
public IterationCount IterationCount { get; set; }
Property Value
PlaybackDirection
Gets or sets the playback direction for this animation.
public PlaybackDirection PlaybackDirection { get; set; }
Property Value
SpeedRatio
Gets or sets the speed multiple for this animation.
public double SpeedRatio { get; set; }
Property Value
Methods
RegisterCustomAnimator<T, TAnimator>()
public static void RegisterCustomAnimator<T, TAnimator>() where TAnimator : InterpolatingAnimator<T>, new()
Type Parameters
T
TAnimator
RunAsync(Animatable, CancellationToken)
public Task RunAsync(Animatable control, CancellationToken cancellationToken = default)
Parameters
control
AnimatablecancellationToken
CancellationToken
Returns
SetAnimator(IAnimationSetter, CustomAnimatorBase)
Sets the value of the Animator attached property for a setter.
[Obsolete("CustomAnimatorBase will be removed before 11.0, use InterpolatingAnimator<T>", true)]
public static void SetAnimator(IAnimationSetter setter, CustomAnimatorBase value)
Parameters
setter
IAnimationSetterThe animation setter.
value
CustomAnimatorBaseThe property animator value.
SetAnimator(IAnimationSetter, ICustomAnimator)
Sets the value of the Animator attached property for a setter.
public static void SetAnimator(IAnimationSetter setter, ICustomAnimator value)
Parameters
setter
IAnimationSetterThe animation setter.
value
ICustomAnimatorThe property animator value.