Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 1.73 KB

perspectivetransform3d.md

File metadata and controls

29 lines (17 loc) · 1.73 KB
-api-id -api-type
T:Windows.UI.Xaml.Media.Media3D.PerspectiveTransform3D
winrt class

Windows.UI.Xaml.Media.Media3D.PerspectiveTransform3D

-description

Represents a 3-D perspective effect.

-remarks

For more info about using PerspectiveTransform3D, see the UIElement.Transform3D property.

Adding a PerspectiveTransform3D element to a scene with no other 3-D transforms will not change the appearance of any 2-D elements. It will preserve the X and Y coordinates in the plane of Z=0. To take advantage of the perspective effect, you need to use CompositeTransform3D in conjunction with PerspectiveTransform3D.

Following the guidelines of the The Direct3D Transformation Pipeline, PerspectiveTransform3D represents a projection transform. In comparison, CompositeTransform3D represents a world or view transform. Because of this, PerspectiveTransform3D should usually be applied at the root of the XAML scene. In most cases, this would be the Page element.

-examples

-see-also

Transform3D, CompositeTransform3D class, UIElement.Transform3D property, Transform3D parallax sample (Windows 10), Transform3D animations sample (Windows 10)