CompositionAnimation Class

This is the base class for ExpressionAnimation and KeyFrameAnimation.

Definition

Namespace: Avalonia.Rendering.Composition.Animations
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public abstract class CompositionAnimation : CompositionObject, 
	ICompositionAnimationBase
Inheritance
Object    CompositionObject    CompositionAnimation
Derived
Implements
ICompositionAnimationBase

Remarks

Use the StartAnimation(String, CompositionAnimation) method to start the animation. Value parameters (as opposed to reference parameters which are set using SetReferenceParameter(String, CompositionObject)) are copied and "embedded" into an expression at the time CompositionObject.StartAnimation is called. Changing the value of the variable after StartAnimation(String, CompositionAnimation) is called will not affect the value of the ExpressionAnimation. See the remarks section of ExpressionAnimation for additional information.

Properties

Compositor The associated Compositor
(Inherited from CompositionObject)
ImplicitAnimations The collection of implicit animations attached to this object.
(Inherited from CompositionObject)
IsDisposed
(Inherited from CompositionObject)
Target 

Methods

ClearAllParameters Clears all of the parameters of the animation.
ClearParameter(String) Clears a parameter from the animation.
Dispose
(Inherited from CompositionObject)
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
RegisterForSerialization
(Inherited from CompositionObject)
SetColorParameter(String, Color) 
SetMatrix3x2Parameter(String, Matrix3x2) 
SetMatrix4x4Parameter(String, Matrix4x4) 
SetQuaternionParameter(String, Quaternion) 
SetReferenceParameter(String, CompositionObject) 
SetScalarParameter(String, Single) 
SetVector2Parameter(String, Vector2) 
SetVector3Parameter(String, Vector3) 
SetVector4Parameter(String, Vector4) 
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)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also