CompositionAnimation Class
This is the base class for ExpressionAnimation and KeyFrameAnimation.
Definition
Namespace: Avalonia.Rendering.Composition.Animations
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public abstract class CompositionAnimation : CompositionObject,
ICompositionAnimationBase
Public MustInherit Class CompositionAnimation
Inherits CompositionObject
Implements ICompositionAnimationBase
[<AbstractClassAttribute>]
type CompositionAnimation =
class
inherit CompositionObject
interface ICompositionAnimationBase
end
Inheritance | Object → CompositionObject → CompositionAnimation |
Derived | Avalonia.Rendering.Composition.Animations.ExpressionAnimation Avalonia.Rendering.Composition.Animations.KeyFrameAnimation |
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) |
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) |
MemberwiseClone() | Creates 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) |
ToString() | Returns a string that represents the current object. (Inherited from Object) |