-api-id | -api-type |
---|---|
P:Microsoft.UI.Xaml.UIElement.Projection |
winrt property |
Gets or sets the perspective projection (3-D effect) to apply when rendering this element.
<uiElement>
<uiElement.Projection>
singleProjection
</uiElement.Projection>
</uiElement>
- singleProjection
- singleProjectionA single object element that defines a specific projection. Typically this is a Matrix3DProjection or PlaneProjection.
Projection is the base class type that this property uses, but Projection does not implement a practical behavior. Use either Matrix3DProjection or PlaneProjection.
The value of Projection is overridden by PointerDownThemeAnimation and PointerUpThemeAnimation.
This example shows how to apply a basic PlaneProjection in the initial page XAML.
[!code-xamlBasicPerspectiveTransforms]
Matrix3DProjection, Matrix3D, 3-D effects for using XAML, XAML two-dimensional transforms sample