Skip to content

Latest commit

 

History

History
52 lines (31 loc) · 2.47 KB

matrix3dprojection.md

File metadata and controls

52 lines (31 loc) · 2.47 KB
-api-id -api-type
T:Windows.UI.Xaml.Media.Matrix3DProjection
winrt class

Windows.UI.Xaml.Media.Matrix3DProjection

-description

Applies a Matrix3D projection to an object.

-xaml-syntax

<Matrix3DProjection .../>
-or-
<!--xmlns:m3d="using:Windows.UI.Xaml.Media.Media3D"-->
<Matrix3DProjection>
  <m3d:Matrix3D>matrix3DInitializationString</m3d:Matrix3D>
</Matrix3DProjection>

-remarks

You can use the Matrix3DProjection and Matrix3D types for more complex semi–3-D scenarios than are possible with the PlaneProjection type. Matrix3DProjection provides a complete 3-D transform matrix to apply to any UIElement (you use this as a value for the UIElement.Projection property). The matrix lets you apply arbitrary model transform matrices and perspective matrices to visual elements.

-examples

This example uses a simple Matrix3D matrix to transform the image in the X and Y directions when you click the image.

[!code-xamlMatrix3DProjectionSimple]

[!code-csharpMatrix3DProjectionSimple_code]

[!code-xamlMatrix3DProjectionXAML]

[!code-xamlMatrix3DProjectionSample]

[!code-csharpMatrix3DProjectionSample_code]

-see-also

Projection, UIElement.Projection, Matrix3D, 3-D perspective effects for XAML UI jection.md), Matrix3D, 3-D perspective effects for XAML UI