PlaneProjection PlaneProjection PlaneProjection PlaneProjection Class

Definition

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

public : sealed class PlaneProjection : Projection, IPlaneProjection
struct winrt::Windows::UI::Xaml::Media::PlaneProjection : Projection, IPlaneProjection
public sealed class PlaneProjection : Projection, IPlaneProjection
Public NotInheritable Class PlaneProjection Inherits Projection Implements IPlaneProjection
<PlaneProjection .../>
Inheritance
PlaneProjectionPlaneProjectionPlaneProjectionPlaneProjection
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() PlaneProjection()

Initializes a new instance of the PlaneProjection class.

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

Properties

CenterOfRotationX 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; }
double CenterOfRotationX(); void CenterOfRotationX(double centerofrotationx);
public double CenterOfRotationX { get; set; }
Public ReadWrite Property CenterOfRotationX As double
<PlaneProjection CenterOfRotationX="double"/>
Value
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 CenterOfRotationXProperty

Identifies the CenterOfRotationX dependency property.

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

The identifier for the CenterOfRotationX dependency property.

CenterOfRotationY 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; }
double CenterOfRotationY(); void CenterOfRotationY(double centerofrotationy);
public double CenterOfRotationY { get; set; }
Public ReadWrite Property CenterOfRotationY As double
<PlaneProjection CenterOfRotationY="double"/>
Value
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 CenterOfRotationYProperty

Identifies the CenterOfRotationY dependency property.

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

The identifier for the CenterOfRotationY dependency property.

CenterOfRotationZ 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; }
double CenterOfRotationZ(); void CenterOfRotationZ(double centerofrotationz);
public double CenterOfRotationZ { get; set; }
Public ReadWrite Property CenterOfRotationZ As double
<PlaneProjection CenterOfRotationZ="double"/>
Value
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 CenterOfRotationZProperty

Identifies the CenterOfRotationZ dependency property.

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

The identifier for the CenterOfRotationZ 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)

GlobalOffsetX 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; }
double GlobalOffsetX(); void GlobalOffsetX(double globaloffsetx);
public double GlobalOffsetX { get; set; }
Public ReadWrite Property GlobalOffsetX As double
<PlaneProjection GlobalOffsetX="double"/>
Value
double double

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

GlobalOffsetXProperty GlobalOffsetXProperty GlobalOffsetXProperty GlobalOffsetXProperty

Identifies the GlobalOffsetX dependency property.

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

The identifier for the GlobalOffsetX dependency property.

GlobalOffsetY 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; }
double GlobalOffsetY(); void GlobalOffsetY(double globaloffsety);
public double GlobalOffsetY { get; set; }
Public ReadWrite Property GlobalOffsetY As double
<PlaneProjection GlobalOffsetY="double"/>
Value
double double

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

GlobalOffsetYProperty GlobalOffsetYProperty GlobalOffsetYProperty GlobalOffsetYProperty

Identifies the GlobalOffsetY dependency property.

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

The identifier for the GlobalOffsetY dependency property.

GlobalOffsetZ 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; }
double GlobalOffsetZ(); void GlobalOffsetZ(double globaloffsetz);
public double GlobalOffsetZ { get; set; }
Public ReadWrite Property GlobalOffsetZ As double
<PlaneProjection GlobalOffsetZ="double"/>
Value
double double

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

GlobalOffsetZProperty GlobalOffsetZProperty GlobalOffsetZProperty GlobalOffsetZProperty

Identifies the GlobalOffsetZ dependency property.

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

The identifier for the GlobalOffsetZ dependency property.

LocalOffsetX 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; }
double LocalOffsetX(); void LocalOffsetX(double localoffsetx);
public double LocalOffsetX { get; set; }
Public ReadWrite Property LocalOffsetX As double
<PlaneProjection LocalOffsetX="double"/>
Value
double double

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

LocalOffsetXProperty LocalOffsetXProperty LocalOffsetXProperty LocalOffsetXProperty

Identifies the LocalOffsetX dependency property.

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

The identifier for the LocalOffsetX dependency property.

LocalOffsetY 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; }
double LocalOffsetY(); void LocalOffsetY(double localoffsety);
public double LocalOffsetY { get; set; }
Public ReadWrite Property LocalOffsetY As double
<PlaneProjection LocalOffsetY="double"/>
Value
double double

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

LocalOffsetYProperty LocalOffsetYProperty LocalOffsetYProperty LocalOffsetYProperty

Identifies the LocalOffsetY dependency property.

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

The identifier for the LocalOffsetY dependency property.

LocalOffsetZ 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; }
double LocalOffsetZ(); void LocalOffsetZ(double localoffsetz);
public double LocalOffsetZ { get; set; }
Public ReadWrite Property LocalOffsetZ As double
<PlaneProjection LocalOffsetZ="double"/>
Value
double double

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

LocalOffsetZProperty LocalOffsetZProperty LocalOffsetZProperty LocalOffsetZProperty

Identifies the LocalOffsetZ dependency property.

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

The identifier for the LocalOffsetZ dependency property.

ProjectionMatrix ProjectionMatrix ProjectionMatrix ProjectionMatrix

Gets the projection matrix of the PlaneProjection.

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

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

ProjectionMatrixProperty ProjectionMatrixProperty ProjectionMatrixProperty ProjectionMatrixProperty

Identifies the ProjectionMatrix dependency property.

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

The identifier for the ProjectionMatrix dependency property.

RotationX 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; }
double RotationX(); void RotationX(double rotationx);
public double RotationX { get; set; }
Public ReadWrite Property RotationX As double
<PlaneProjection RotationX="double"/>
Value
double double

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

RotationXProperty RotationXProperty RotationXProperty RotationXProperty

Identifies the RotationX dependency property.

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

The identifier for the RotationX dependency property.

RotationY 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; }
double RotationY(); void RotationY(double rotationy);
public double RotationY { get; set; }
Public ReadWrite Property RotationY As double
<PlaneProjection RotationY="double"/>
Value
double double

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

RotationYProperty RotationYProperty RotationYProperty RotationYProperty

Identifies the RotationY dependency property.

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

The identifier for the RotationY dependency property.

RotationZ 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; }
double RotationZ(); void RotationZ(double rotationz);
public double RotationZ { get; set; }
Public ReadWrite Property RotationZ As double
<PlaneProjection RotationZ="double"/>
Value
double double

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

RotationZProperty RotationZProperty RotationZProperty RotationZProperty

Identifies the RotationZ dependency property.

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

The identifier for the RotationZ dependency property.

Methods

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