Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 2.29 KB

uielement_projection.md

File metadata and controls

47 lines (32 loc) · 2.29 KB
-api-id -api-type
P:Windows.UI.Xaml.UIElement.Projection
winrt property

Windows.UI.Xaml.UIElement.Projection

-description

Gets or sets the perspective projection (3-D effect) to apply when rendering this element.

-xaml-syntax

<uiElement>
  <uiElement.Projection>
    singleProjection
  </uiElement.Projection>
</uiElement>

-xaml-values

singleProjection
singleProjectionA single object element that defines a specific projection. Typically this is a Matrix3DProjection or PlaneProjection.
## -property-value A 3-D projection effect applied to the element. ## -remarks Projection and [RenderTransform](uielement_rendertransform.md) with a [SkewTransform](../windows.ui.xaml.media/skewtransform.md) can achieve similar results, a Projection is probably more versatile, especially if you want a sense of perspective change applied to the element.

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.

-examples

This example shows how to apply a basic PlaneProjection in the initial page XAML.

[!code-xamlBasicPerspectiveTransforms]

-see-also

Matrix3DProjection, Matrix3D, 3-D effects for using XAML, XAML two-dimensional transforms sample