Skip to main content

KeyFrameAnimation Class

A time-based animation with one or more key frames. These frames are markers, allowing developers to specify values at specific times for the animating property. KeyFrame animations can be further customized by specifying how the animation interpolates between keyframes.

Definition

Namespace: Avalonia.Rendering.Composition.Animations
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public abstract class KeyFrameAnimation : CompositionAnimation
View Source
InheritanceObjectCompositionObjectCompositionAnimation → KeyFrameAnimation
DerivedAvalonia.Rendering.Composition.BooleanKeyFrameAnimation
Avalonia.Rendering.Composition.ColorKeyFrameAnimation
Avalonia.Rendering.Composition.DoubleKeyFrameAnimation
Avalonia.Rendering.Composition.QuaternionKeyFrameAnimation
Avalonia.Rendering.Composition.ScalarKeyFrameAnimation
Avalonia.Rendering.Composition.Vector2KeyFrameAnimation
Avalonia.Rendering.Composition.Vector3DKeyFrameAnimation
Avalonia.Rendering.Composition.Vector3KeyFrameAnimation
Avalonia.Rendering.Composition.Vector4KeyFrameAnimation
Avalonia.Rendering.Composition.VectorKeyFrameAnimation

Properties

CompositorThe associated Compositor
(Inherited from CompositionObject)
DelayBehaviorThe delay behavior of the key frame animation.
DelayTimeDelay before the animation starts after StartAnimation(String, CompositionAnimation) is called.
DirectionThe direction the animation is playing. The Direction property allows you to drive your animation from start to end or end to start or alternate between start and end or end to start if animation has an IterationCount greater than one. This gives an easy way for customizing animation definitions.
DurationThe duration of the animation. Minimum allowed value is 1ms and maximum allowed value is 24 days.
ImplicitAnimationsThe collection of implicit animations attached to this object.
(Inherited from CompositionObject)
IsDisposed
(Inherited from CompositionObject)
IterationBehaviorThe iteration behavior for the key frame animation.
IterationCountThe number of times to repeat the key frame animation.
StopBehaviorSpecifies how to set the property value when animation is stopped
Target
(Inherited from CompositionAnimation)

Methods

ClearAllParameters()Clears all of the parameters of the animation.
(Inherited from CompositionAnimation)
ClearParameter(String)Clears a parameter from the animation.
(Inherited from CompositionAnimation)
Dispose()
(Inherited from CompositionObject)
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
InsertExpressionKeyFrame(Single, String, Easing)Inserts an expression keyframe.
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
RegisterForSerialization()
(Inherited from CompositionObject)
SetColorParameter(String, Color)
(Inherited from CompositionAnimation)
SetMatrix3x2Parameter(String, Matrix3x2)
(Inherited from CompositionAnimation)
SetMatrix4x4Parameter(String, Matrix4x4)
(Inherited from CompositionAnimation)
SetQuaternionParameter(String, Quaternion)
(Inherited from CompositionAnimation)
SetReferenceParameter(String, CompositionObject)
(Inherited from CompositionAnimation)
SetScalarParameter(String, Single)
(Inherited from CompositionAnimation)
SetVector2Parameter(String, Vector2)
(Inherited from CompositionAnimation)
SetVector3Parameter(String, Vector3)
(Inherited from CompositionAnimation)
SetVector4Parameter(String, Vector4)
(Inherited from CompositionAnimation)
StartAnimation(String, CompositionAnimation)Connects an animation with the specified property of the object and starts the animation.
(Inherited from CompositionObject)
StartAnimationGroup(ICompositionAnimationBase)Starts an animation group. The StartAnimationGroup method on CompositionObject lets you start CompositionAnimationGroup. All the animations in the group will be started at the same time on the object.
(Inherited from CompositionObject)
ToString()Returns a string that represents the current object.
(Inherited from Object)

See Also

Reference

Avalonia.Rendering.Composition.Animations Namespace