UIElement.TransformMatrix Property

Definition

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

C#
public Matrix4x4 TransformMatrix { get; set; }

Property Value

Matrix4x4

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

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6