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.
Namespace: Avalonia.Rendering.CompositionAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public sealed class CompositionPropertySet : CompositionObject
Public NotInheritable Class CompositionPropertySet
Inherits CompositionObject
[<SealedAttribute>]
type CompositionPropertySet =
class
inherit CompositionObject
end
- Inheritance
- Object CompositionObject CompositionPropertySet
| 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) | |