-api-id | -api-type |
---|---|
T:Windows.UI.Xaml.Media.Matrix3DProjection |
winrt class |
Applies a Matrix3D projection to an object.
<Matrix3DProjection .../>
-or-
<!--xmlns:m3d="using:Windows.UI.Xaml.Media.Media3D"-->
<Matrix3DProjection>
<m3d:Matrix3D>matrix3DInitializationString</m3d:Matrix3D>
</Matrix3DProjection>
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.
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]
Projection, UIElement.Projection, Matrix3D, 3-D perspective effects for XAML UI jection.md), Matrix3D, 3-D perspective effects for XAML UI