-api-id | -api-type |
---|---|
T:Windows.UI.Xaml.Media.Media3D.PerspectiveTransform3D |
winrt class |
Represents a 3-D perspective effect.
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.
Transform3D, CompositeTransform3D class, UIElement.Transform3D property, Transform3D parallax sample (Windows 10), Transform3D animations sample (Windows 10)