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)
- C#
- VB
- F#
public abstract class KeyFrameAnimation : CompositionAnimation
Public MustInherit Class KeyFrameAnimation
Inherits CompositionAnimation
[<AbstractClassAttribute>]
type KeyFrameAnimation =
class
inherit CompositionAnimation
end
Properties
Compositor | The associated Compositor (Inherited from CompositionObject) |
DelayBehavior | The delay behavior of the key frame animation. |
DelayTime | Delay before the animation starts after StartAnimation(String, CompositionAnimation) is called. |
Direction | The 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. |
Duration | The duration of the animation. Minimum allowed value is 1ms and maximum allowed value is 24 days. |
ImplicitAnimations | The collection of implicit animations attached to this object. (Inherited from CompositionObject) |
IsDisposed | (Inherited from CompositionObject) |
IterationBehavior | The iteration behavior for the key frame animation. |
IterationCount | The number of times to repeat the key frame animation. |
StopBehavior | Specifies 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) |