Skip to main content

CompositionPropertySet Class

CompositionPropertySets are CompositionObjects that allow storage of key values pairs that can be shared across the application and are not tied to the lifetime of another composition object. CompositionPropertySets are most commonly used with animations, where they maintain key-value pairs that are referenced to drive portions of composition animations. CompositionPropertySets provide the ability to insert key-value pairs or retrieve a value for a given key. CompositionPropertySet does not support a delete function – ensure you use CompositionPropertySet to store values that will be shared across the application.

Definition

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

public sealed class CompositionPropertySet : CompositionObject
View Source
InheritanceObjectCompositionObject → CompositionPropertySet

Properties

CompositorThe associated Compositor
(Inherited from CompositionObject)
ImplicitAnimationsThe collection of implicit animations attached to this object.
(Inherited from CompositionObject)
IsDisposed
(Inherited from CompositionObject)

Methods

Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
InsertBoolean(String, Boolean) 
InsertColor(String, Color) 
InsertMatrix3x2(String, Matrix3x2) 
InsertMatrix4x4(String, Matrix4x4) 
InsertQuaternion(String, Quaternion) 
InsertScalar(String, Single) 
InsertVector2(String, Vector2) 
InsertVector3(String, Vector3) 
InsertVector4(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)
TryGetBoolean(String, Boolean) 
TryGetColor(String, Color) 
TryGetMatrix3x2(String, Matrix3x2) 
TryGetMatrix4x4(String, Matrix4x4) 
TryGetQuaternion(String, Quaternion) 
TryGetScalar(String, Single) 
TryGetVector2(String, Vector2) 
TryGetVector3(String, Vector3) 
TryGetVector4(String, Vector4) 

See Also

Reference

Avalonia.Rendering.Composition Namespace