PerspectiveTransform3D PerspectiveTransform3D PerspectiveTransform3D PerspectiveTransform3D Class

Definition

Represents a 3-D perspective effect.

public : sealed class PerspectiveTransform3D : Transform3D, IPerspectiveTransform3Dpublic sealed class PerspectiveTransform3D : Transform3D, IPerspectiveTransform3DPublic NotInheritable Class PerspectiveTransform3D Inherits Transform3D Implements IPerspectiveTransform3D// This API is not available in Javascript.
Inheritance
PerspectiveTransform3DPerspectiveTransform3DPerspectiveTransform3DPerspectiveTransform3D
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited methods

Inherited properties

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.

Constructors

PerspectiveTransform3D() PerspectiveTransform3D() PerspectiveTransform3D() PerspectiveTransform3D()

Initializes a new instance of the PerspectiveTransform3D class.

public : PerspectiveTransform3D()public PerspectiveTransform3D()Public Sub New()// This API is not available in Javascript.

Properties

Depth Depth Depth Depth

Gets or sets the distance in pixels to the plane where z=0.

public : double Depth { get; set; }public double Depth { get; set; }Public ReadWrite Property Depth As double// This API is not available in Javascript.
Value
double double double double

The distance to the z=0 plane. This value must be greater than zero. The default value is 1000.

DepthProperty DepthProperty DepthProperty DepthProperty

Identifies the Depth dependency property.

public : static DependencyProperty DepthProperty { get; }public static DependencyProperty DepthProperty { get; }Public Static ReadOnly Property DepthProperty As DependencyProperty// This API is not available in Javascript.

OffsetX OffsetX OffsetX OffsetX

Gets or sets the x-offset in pixels for the perspective's origin from the center of the element.

public : double OffsetX { get; set; }public double OffsetX { get; set; }Public ReadWrite Property OffsetX As double// This API is not available in Javascript.
Value
double double double double

The x-offset of the perspective's origin from the center of the element. This distance is measured in pixels and the default value is 0.

OffsetXProperty OffsetXProperty OffsetXProperty OffsetXProperty

Identifies the OffsetX dependency property.

public : static DependencyProperty OffsetXProperty { get; }public static DependencyProperty OffsetXProperty { get; }Public Static ReadOnly Property OffsetXProperty As DependencyProperty// This API is not available in Javascript.

OffsetY OffsetY OffsetY OffsetY

Gets or sets the y-offset in pixels for the perspective's origin from the center of the element.

public : double OffsetY { get; set; }public double OffsetY { get; set; }Public ReadWrite Property OffsetY As double// This API is not available in Javascript.
Value
double double double double

The y-offset of the perspective's origin from the center of the element. This distance is measured in pixels and the default value is 0.

OffsetYProperty OffsetYProperty OffsetYProperty OffsetYProperty

Identifies the OffsetY dependency property.

public : static DependencyProperty OffsetYProperty { get; }public static DependencyProperty OffsetYProperty { get; }Public Static ReadOnly Property OffsetYProperty As DependencyProperty// This API is not available in Javascript.

See Also