UIElement.TransformMatrix Property


Gets or sets the transformation matrix to apply to the element.

 property Matrix4x4 TransformMatrix { Matrix4x4 get(); void set(Matrix4x4 value); };
Matrix4x4 TransformMatrix();

void TransformMatrix(Matrix4x4 value);
public Matrix4x4 TransformMatrix { get; set; }
Public Property TransformMatrix As Matrix4x4

Property Value


The transformation matrix to apply to the element.


This property is not compatible with ElementCompositionPreview.GetElementVisual. Attempting to use TransformMatrix after calling GetElementVisual will fail with the following error:

Access denied. Calling TransformMatrix API is not allowed on this object at this time, as this object currently has the ElementCompositionPreview.GetElementVisual property in use.

Applies to