CompositionPropertySet Class
Definition
Avalonia.Rendering.Composition.CompositionPropertySets are Avalonia.Rendering.Composition.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. Avalonia.Rendering.Composition.CompositionPropertySets are most commonly used with animations, where they maintain key-value pairs that are referenced to drive portions of composition animations. Avalonia.Rendering.Composition.CompositionPropertySets provide the ability to insert key-value pairs or retrieve a value for a given key. Avalonia.Rendering.Composition.CompositionPropertySet does not support a delete function – ensure you use Avalonia.Rendering.Composition.CompositionPropertySet to store values that will be shared across the application.
public class CompositionPropertySet
Methods
| Name | Description |
|---|---|
| InsertBoolean | No summary available. |
| InsertColor | No summary available. |
| InsertMatrix3x2 | No summary available. |
| InsertMatrix4x4 | No summary available. |
| InsertQuaternion | No summary available. |
| InsertScalar | No summary available. |
| InsertVector2 | No summary available. |
| InsertVector3 | No summary available. |
| InsertVector4 | No summary available. |
| TryGetBoolean | No summary available. |
| TryGetColor | No summary available. |
| TryGetMatrix3x2 | No summary available. |
| TryGetMatrix4x4 | No summary available. |
| TryGetQuaternion | No summary available. |
| TryGetScalar | No summary available. |
| TryGetVector2 | No summary available. |
| TryGetVector3 | No summary available. |
| TryGetVector4 | No summary available. |
| StartAnimation | Connects an animation with the specified property of the object and starts the animation. Inherited from CompositionObject. |
| StartAnimationGroup | 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. |
| StopAnimation | Disconnects an animation from the specified property and stops the animation. Inherited from CompositionObject. |
| StopAnimationGroup | Stops an animation group. Inherited from CompositionObject. |
InsertBoolean Method
public void InsertBoolean(string propertyName, bool value)
Parameters
propertyName string
value bool
InsertColor Method
public void InsertColor(string propertyName, Avalonia.Media.Color value)
Parameters
propertyName string
value Avalonia.Media.Color
InsertMatrix3x2 Method
public void InsertMatrix3x2(string propertyName, System.Numerics.Matrix3x2 value)
Parameters
propertyName string
value System.Numerics.Matrix3x2
InsertMatrix4x4 Method
public void InsertMatrix4x4(string propertyName, System.Numerics.Matrix4x4 value)
Parameters
propertyName string
value System.Numerics.Matrix4x4
InsertQuaternion Method
public void InsertQuaternion(string propertyName, System.Numerics.Quaternion value)
Parameters
propertyName string
value System.Numerics.Quaternion
InsertScalar Method
public void InsertScalar(string propertyName, float value)
Parameters
propertyName string
value float
InsertVector2 Method
public void InsertVector2(string propertyName, System.Numerics.Vector2 value)
Parameters
propertyName string
value System.Numerics.Vector2
InsertVector3 Method
public void InsertVector3(string propertyName, System.Numerics.Vector3 value)
Parameters
propertyName string
value System.Numerics.Vector3
InsertVector4 Method
public void InsertVector4(string propertyName, System.Numerics.Vector4 value)
Parameters
propertyName string
value System.Numerics.Vector4
TryGetBoolean Method
public Avalonia.Rendering.Composition.CompositionGetValueStatus TryGetBoolean(string propertyName, bool& value)
Parameters
propertyName string
value bool&
Returns
TryGetColor Method
public Avalonia.Rendering.Composition.CompositionGetValueStatus TryGetColor(string propertyName, Avalonia.Media.Color& value)
Parameters
propertyName string
value Avalonia.Media.Color&
Returns
TryGetMatrix3x2 Method
public Avalonia.Rendering.Composition.CompositionGetValueStatus TryGetMatrix3x2(string propertyName, System.Numerics.Matrix3x2& value)
Parameters
propertyName string
value System.Numerics.Matrix3x2&
Returns
TryGetMatrix4x4 Method
public Avalonia.Rendering.Composition.CompositionGetValueStatus TryGetMatrix4x4(string propertyName, System.Numerics.Matrix4x4& value)
Parameters
propertyName string
value System.Numerics.Matrix4x4&
Returns
TryGetQuaternion Method
public Avalonia.Rendering.Composition.CompositionGetValueStatus TryGetQuaternion(string propertyName, System.Numerics.Quaternion& value)
Parameters
propertyName string
value System.Numerics.Quaternion&
Returns
TryGetScalar Method
public Avalonia.Rendering.Composition.CompositionGetValueStatus TryGetScalar(string propertyName, float& value)
Parameters
propertyName string
value float&
Returns
TryGetVector2 Method
public Avalonia.Rendering.Composition.CompositionGetValueStatus TryGetVector2(string propertyName, System.Numerics.Vector2& value)
Parameters
propertyName string
value System.Numerics.Vector2&
Returns
TryGetVector3 Method
public Avalonia.Rendering.Composition.CompositionGetValueStatus TryGetVector3(string propertyName, System.Numerics.Vector3& value)
Parameters
propertyName string
value System.Numerics.Vector3&
Returns
TryGetVector4 Method
public Avalonia.Rendering.Composition.CompositionGetValueStatus TryGetVector4(string propertyName, System.Numerics.Vector4& value)
Parameters
propertyName string
value System.Numerics.Vector4&
Returns
Properties
| Name | Description |
|---|---|
| Compositor | The associated Compositor Inherited from CompositionObject. |
| ImplicitAnimations | The collection of implicit animations attached to this object. Inherited from CompositionObject. |
| IsDisposed | Inherited from CompositionObject. |