Skip to main content

Vector2KeyFrameAnimation Class

Definition

Assembly:Avalonia.Base
Package:Avalonia
public class Vector2KeyFrameAnimation

Inheritance: object -> CompositionObject -> CompositionAnimation -> KeyFrameAnimation -> Vector2KeyFrameAnimation

Constructors

NameDescription
Vector2KeyFrameAnimationNo summary available.

Vector2KeyFrameAnimation Constructor

public Vector2KeyFrameAnimation(Avalonia.Rendering.Composition.Compositor compositor)

Parameters

compositor Avalonia.Rendering.Composition.Compositor

Methods

NameDescription
InsertKeyFrame (2 overloads)No summary available.
InsertExpressionKeyFrameInserts an expression keyframe. Inherited from KeyFrameAnimation.
ClearAllParametersClears all of the parameters of the animation. Inherited from CompositionAnimation.
ClearParameterClears a parameter from the animation. Inherited from CompositionAnimation.
SetColorParameterInherited from CompositionAnimation.
SetMatrix3x2ParameterInherited from CompositionAnimation.
SetMatrix4x4ParameterInherited from CompositionAnimation.
SetQuaternionParameterInherited from CompositionAnimation.
SetReferenceParameterInherited from CompositionAnimation.
SetScalarParameterInherited from CompositionAnimation.
SetVector2ParameterInherited from CompositionAnimation.
SetVector3ParameterInherited from CompositionAnimation.
SetVector4ParameterInherited from CompositionAnimation.
StartAnimationConnects an animation with the specified property of the object and starts the animation. Inherited from CompositionObject.
StartAnimationGroupStarts 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.
StopAnimationDisconnects an animation from the specified property and stops the animation. Inherited from CompositionObject.
StopAnimationGroupStops an animation group. Inherited from CompositionObject.

InsertKeyFrame overloads

InsertKeyFrame Method

public void InsertKeyFrame(float normalizedProgressKey, System.Numerics.Vector2 value)
Parameters

normalizedProgressKey float

value System.Numerics.Vector2

InsertKeyFrame Method

public void InsertKeyFrame(float normalizedProgressKey, System.Numerics.Vector2 value, Avalonia.Animation.Easings.IEasing easingFunction)
Parameters

normalizedProgressKey float

value System.Numerics.Vector2

easingFunction Avalonia.Animation.Easings.IEasing

Properties

NameDescription
DelayBehaviorThe delay behavior of the key frame animation. Inherited from KeyFrameAnimation.
DelayTimeDelay before the animation starts after Avalonia.Rendering.Composition.CompositionObject.StartAnimation(string,Avalonia.Rendering.Composition.Animations.CompositionAnimation) is called. Inherited from KeyFrameAnimation.
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 Avalonia.Rendering.Composition.Animations.KeyFrameAnimation.IterationCount greater than one. This gives an easy way for customizing animation definitions. Inherited from KeyFrameAnimation.
DurationThe duration of the animation. Minimum allowed value is 1ms and maximum allowed value is 24 days. Inherited from KeyFrameAnimation.
IterationBehaviorThe iteration behavior for the key frame animation. Inherited from KeyFrameAnimation.
IterationCountThe number of times to repeat the key frame animation. Inherited from KeyFrameAnimation.
StopBehaviorSpecifies how to set the property value when animation is stopped Inherited from KeyFrameAnimation.
TargetInherited from CompositionAnimation.
CompositorThe associated Compositor Inherited from CompositionObject.
ImplicitAnimationsThe collection of implicit animations attached to this object. Inherited from CompositionObject.
IsDisposedInherited from CompositionObject.