PlaneProjection PlaneProjection PlaneProjection Class

Definition

Represents a perspective transform (a 3-D-like effect) on an object.

public : sealed class PlaneProjection : Projection, IPlaneProjection
public sealed class PlaneProjection : Projection, IPlaneProjection
Public NotInheritable Class PlaneProjection Inherits Projection Implements IPlaneProjection
<PlaneProjection .../>
Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Examples

To apply a perspective transform to a UIElement, set the UIElement object's Projection property to a PlaneProjection. The PlaneProjection defines how the transform is rendered in space. This example shows a simple case.

<StackPanel Margin="35" Background="Gray">
    <StackPanel.Projection>
        <PlaneProjection RotationX="-35" RotationY="-35" RotationZ="15"  />
    </StackPanel.Projection>
    <TextBlock Margin="10">Type Something Below</TextBlock>
    <TextBox Margin="10"></TextBox>
    <Button Margin="10" Content="Click" Width="100" />
</StackPanel>

Constructors

PlaneProjection() PlaneProjection() PlaneProjection()

Initializes a new instance of the PlaneProjection class.

public : PlaneProjection()
public PlaneProjection()
Public Sub New()

Properties

CenterOfRotationX CenterOfRotationX CenterOfRotationX

Gets or sets the x-coordinate of the center of rotation of the object that you rotate.

public : double CenterOfRotationX { get; set; }
public double CenterOfRotationX { get; set; }
Public ReadWrite Property CenterOfRotationX As double
<PlaneProjection CenterOfRotationX="double"/>
Value
double double double

The x-coordinate of the center of rotation of the object that you rotate. Typical values are between 0 and 1 with a value of 0 corresponding to one edge of the object and 1 to the opposite edge. Values outside this range are allowed and move the center of rotation accordingly. The default is 0.5 (the center of object).

CenterOfRotationXProperty CenterOfRotationXProperty CenterOfRotationXProperty

Identifies the CenterOfRotationX dependency property.

public : static DependencyProperty CenterOfRotationXProperty { get; }
public static DependencyProperty CenterOfRotationXProperty { get; }
Public Static ReadOnly Property CenterOfRotationXProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the CenterOfRotationX dependency property.

CenterOfRotationY CenterOfRotationY CenterOfRotationY

Gets or sets the y-coordinate of the center of rotation of the object that you rotate.

public : double CenterOfRotationY { get; set; }
public double CenterOfRotationY { get; set; }
Public ReadWrite Property CenterOfRotationY As double
<PlaneProjection CenterOfRotationY="double"/>
Value
double double double

The y-coordinate of the center of rotation of the object that you rotate. Typical values are between 0 and 1 with a value of 0 corresponding to one edge of the object and 1 to the opposite edge. Values outside this range are allowed and move the center of rotation accordingly. The default is 0.5 (the center of object).

CenterOfRotationYProperty CenterOfRotationYProperty CenterOfRotationYProperty

Identifies the CenterOfRotationY dependency property.

public : static DependencyProperty CenterOfRotationYProperty { get; }
public static DependencyProperty CenterOfRotationYProperty { get; }
Public Static ReadOnly Property CenterOfRotationYProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the CenterOfRotationY dependency property.

CenterOfRotationZ CenterOfRotationZ CenterOfRotationZ

Gets or sets the z-coordinate of the center of rotation of the object that you rotate.

public : double CenterOfRotationZ { get; set; }
public double CenterOfRotationZ { get; set; }
Public ReadWrite Property CenterOfRotationZ As double
<PlaneProjection CenterOfRotationZ="double"/>
Value
double double double

The z-coordinate of the center of rotation of the object that you rotate. The default is 0. Values greater than 0 correspond to coordinates in front of the plane of the object, and negative values correspond to coordinates behind the plane of the object.

CenterOfRotationZProperty CenterOfRotationZProperty CenterOfRotationZProperty

Identifies the CenterOfRotationZ dependency property.

public : static DependencyProperty CenterOfRotationZProperty { get; }
public static DependencyProperty CenterOfRotationZProperty { get; }
Public Static ReadOnly Property CenterOfRotationZProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the CenterOfRotationZ dependency property.

Dispatcher Dispatcher Dispatcher

Inherited from DependencyObject

GlobalOffsetX GlobalOffsetX GlobalOffsetX

Gets or sets the distance that the object is translated along the x-axis of the screen.

public : double GlobalOffsetX { get; set; }
public double GlobalOffsetX { get; set; }
Public ReadWrite Property GlobalOffsetX As double
<PlaneProjection GlobalOffsetX="double"/>
Value
double double double

The distance that the object is translated along the x-axis of the screen.

GlobalOffsetXProperty GlobalOffsetXProperty GlobalOffsetXProperty

Identifies the GlobalOffsetX dependency property.

public : static DependencyProperty GlobalOffsetXProperty { get; }
public static DependencyProperty GlobalOffsetXProperty { get; }
Public Static ReadOnly Property GlobalOffsetXProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the GlobalOffsetX dependency property.

GlobalOffsetY GlobalOffsetY GlobalOffsetY

Gets or sets the distance that the object is translated along the y-axis of the screen.

public : double GlobalOffsetY { get; set; }
public double GlobalOffsetY { get; set; }
Public ReadWrite Property GlobalOffsetY As double
<PlaneProjection GlobalOffsetY="double"/>
Value
double double double

The distance that the object is translated along the y-axis of the screen.

GlobalOffsetYProperty GlobalOffsetYProperty GlobalOffsetYProperty

Identifies the GlobalOffsetY dependency property.

public : static DependencyProperty GlobalOffsetYProperty { get; }
public static DependencyProperty GlobalOffsetYProperty { get; }
Public Static ReadOnly Property GlobalOffsetYProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the GlobalOffsetY dependency property.

GlobalOffsetZ GlobalOffsetZ GlobalOffsetZ

Gets or sets the distance that the object is translated along the z-axis of the screen.

public : double GlobalOffsetZ { get; set; }
public double GlobalOffsetZ { get; set; }
Public ReadWrite Property GlobalOffsetZ As double
<PlaneProjection GlobalOffsetZ="double"/>
Value
double double double

The distance that the object is translated along the z-axis of the screen.

GlobalOffsetZProperty GlobalOffsetZProperty GlobalOffsetZProperty

Identifies the GlobalOffsetZ dependency property.

public : static DependencyProperty GlobalOffsetZProperty { get; }
public static DependencyProperty GlobalOffsetZProperty { get; }
Public Static ReadOnly Property GlobalOffsetZProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the GlobalOffsetZ dependency property.

LocalOffsetX LocalOffsetX LocalOffsetX

Gets or sets the distance that the object is translated along the x-axis of the plane of the object.

public : double LocalOffsetX { get; set; }
public double LocalOffsetX { get; set; }
Public ReadWrite Property LocalOffsetX As double
<PlaneProjection LocalOffsetX="double"/>
Value
double double double

The distance that the object is translated along the x-axis of the plane of the object.

LocalOffsetXProperty LocalOffsetXProperty LocalOffsetXProperty

Identifies the LocalOffsetX dependency property.

public : static DependencyProperty LocalOffsetXProperty { get; }
public static DependencyProperty LocalOffsetXProperty { get; }
Public Static ReadOnly Property LocalOffsetXProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the LocalOffsetX dependency property.

LocalOffsetY LocalOffsetY LocalOffsetY

Gets or sets the distance that the object is translated along the y-axis of the plane of the object.

public : double LocalOffsetY { get; set; }
public double LocalOffsetY { get; set; }
Public ReadWrite Property LocalOffsetY As double
<PlaneProjection LocalOffsetY="double"/>
Value
double double double

The distance that the object is translated along the y-axis of the plane of the object.

LocalOffsetYProperty LocalOffsetYProperty LocalOffsetYProperty

Identifies the LocalOffsetY dependency property.

public : static DependencyProperty LocalOffsetYProperty { get; }
public static DependencyProperty LocalOffsetYProperty { get; }
Public Static ReadOnly Property LocalOffsetYProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the LocalOffsetY dependency property.

LocalOffsetZ LocalOffsetZ LocalOffsetZ

Gets or sets the distance that the object is translated along the z-axis of the plane of the object.

public : double LocalOffsetZ { get; set; }
public double LocalOffsetZ { get; set; }
Public ReadWrite Property LocalOffsetZ As double
<PlaneProjection LocalOffsetZ="double"/>
Value
double double double

The distance that the object is translated along the z-axis of the plane of the object.

LocalOffsetZProperty LocalOffsetZProperty LocalOffsetZProperty

Identifies the LocalOffsetZ dependency property.

public : static DependencyProperty LocalOffsetZProperty { get; }
public static DependencyProperty LocalOffsetZProperty { get; }
Public Static ReadOnly Property LocalOffsetZProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the LocalOffsetZ dependency property.

ProjectionMatrix ProjectionMatrix ProjectionMatrix

Gets the projection matrix of the PlaneProjection.

public : Matrix3D ProjectionMatrix { get; }
public Matrix3D ProjectionMatrix { get; }
Public ReadOnly Property ProjectionMatrix As Matrix3D
Value
Matrix3D Matrix3D Matrix3D

The projection matrix of the PlaneProjection. The default value is null.

ProjectionMatrixProperty ProjectionMatrixProperty ProjectionMatrixProperty

Identifies the ProjectionMatrix dependency property.

public : static DependencyProperty ProjectionMatrixProperty { get; }
public static DependencyProperty ProjectionMatrixProperty { get; }
Public Static ReadOnly Property ProjectionMatrixProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the ProjectionMatrix dependency property.

RotationX RotationX RotationX

Gets or sets the number of degrees to rotate the object around the x-axis of rotation.

public : double RotationX { get; set; }
public double RotationX { get; set; }
Public ReadWrite Property RotationX As double
<PlaneProjection RotationX="double"/>
Value
double double double

The number of degrees to rotate the object around the x-axis of rotation. The default is 0.

RotationXProperty RotationXProperty RotationXProperty

Identifies the RotationX dependency property.

public : static DependencyProperty RotationXProperty { get; }
public static DependencyProperty RotationXProperty { get; }
Public Static ReadOnly Property RotationXProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the RotationX dependency property.

RotationY RotationY RotationY

Gets or sets the number of degrees to rotate the object around the y-axis of rotation.

public : double RotationY { get; set; }
public double RotationY { get; set; }
Public ReadWrite Property RotationY As double
<PlaneProjection RotationY="double"/>
Value
double double double

The number of degrees to rotate the object around the y-axis of rotation. The default is 0.

RotationYProperty RotationYProperty RotationYProperty

Identifies the RotationY dependency property.

public : static DependencyProperty RotationYProperty { get; }
public static DependencyProperty RotationYProperty { get; }
Public Static ReadOnly Property RotationYProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the RotationY dependency property.

RotationZ RotationZ RotationZ

Gets or sets the number of degrees to rotate the object around the z-axis of rotation.

public : double RotationZ { get; set; }
public double RotationZ { get; set; }
Public ReadWrite Property RotationZ As double
<PlaneProjection RotationZ="double"/>
Value
double double double

The number of degrees to rotate the object around the z-axis of rotation. The default is 0.

RotationZProperty RotationZProperty RotationZProperty

Identifies the RotationZ dependency property.

public : static DependencyProperty RotationZProperty { get; }
public static DependencyProperty RotationZProperty { get; }
Public Static ReadOnly Property RotationZProperty As DependencyProperty
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the RotationZ dependency property.

Methods

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

Inherited from DependencyObject

GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty)

Inherited from DependencyObject

GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty)

Inherited from DependencyObject

ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty)

Inherited from DependencyObject

RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback)

Inherited from DependencyObject

SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object)

Inherited from DependencyObject

UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64)

Inherited from DependencyObject

See Also