PerspectiveTransform3D PerspectiveTransform3D PerspectiveTransform3D PerspectiveTransform3D Class


Represents a 3-D perspective effect.

public : sealed class PerspectiveTransform3D : Transform3D
struct winrt::Windows::UI::Xaml::Media::Media3D::PerspectiveTransform3D : Transform3D
public sealed class PerspectiveTransform3D : Transform3D
Public NotInheritable Class PerspectiveTransform3D Inherits Transform3D

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


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.


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

Initializes a new instance of the PerspectiveTransform3D class.


Depth Depth Depth Depth

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

DepthProperty DepthProperty DepthProperty DepthProperty

Identifies the Depth dependency property.

Dispatcher Dispatcher Dispatcher Dispatcher

Gets the CoreDispatcher that this object is associated with. The CoreDispatcher represents a facility that can access the DependencyObject on the UI thread even if the code is initiated by a non-UI thread.

(Inherited from DependencyObject)
OffsetX OffsetX OffsetX OffsetX

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

OffsetXProperty OffsetXProperty OffsetXProperty OffsetXProperty

Identifies the OffsetX dependency property.

OffsetY OffsetY OffsetY OffsetY

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

OffsetYProperty OffsetYProperty OffsetYProperty OffsetYProperty

Identifies the OffsetY dependency property.


ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty)

Clears the local value of a dependency property.

(Inherited from DependencyObject)
GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty)

Returns any base value established for a dependency property, which would apply in cases where an animation is not active.

(Inherited from DependencyObject)
GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty)

Returns the current effective value of a dependency property from a DependencyObject.

(Inherited from DependencyObject)
ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty)

Returns the local value of a dependency property, if a local value is set.

(Inherited from DependencyObject)
RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback)

Registers a notification function for listening to changes to a specific DependencyProperty on this DependencyObject instance.

(Inherited from DependencyObject)
SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object)

Sets the local value of a dependency property on a DependencyObject.

(Inherited from DependencyObject)
UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64)

Cancels a change notification that was previously registered by calling RegisterPropertyChangedCallback.

(Inherited from DependencyObject)

See also