Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

UIElement.TransformMatrix Property

Definition

Namespace:
Microsoft.UI.Xaml

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

public:
 property float4x4 TransformMatrix { float4x4 get(); void set(float4x4 value); };
float4x4 TransformMatrix();

void TransformMatrix(float4x4 value);
public Matrix4x4 TransformMatrix { get; set; }
var matrix4x4 = uIElement.transformMatrix;
uIElement.transformMatrix = matrix4x4;
Public Property TransformMatrix As Matrix4x4

Property Value

Matrix4x4 Matrix4x4

float4x4

The transformation matrix to apply to the element.

Remarks

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


Feedback

Was this page helpful?