UIElement.TransformMatrix 屬性

定義

取得或設定要套用至專案的轉換矩陣。

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

屬性值

Matrix4x4 Matrix4x4

float4x4

要套用至專案的轉換矩陣。

Windows 需求

裝置系列
Windows 10, version 1809 (已於 10.0.17763.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v7.0 引進)

備註

這個屬性與 不相容 ElementCompositionPreview.GetElementVisual 。 在呼叫 GetElementVisual 之後嘗試使用 TransformMatrix 將會失敗,並出現下列錯誤:

拒絕存取。 目前不允許在此物件上呼叫 TransformMatrix API,因為此物件目前使用 ElementCompositionPreview.GetElementVisual 屬性。

適用於