PlaneProjection PlaneProjection PlaneProjection Class

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

Syntax

Declaration

public sealed class PlaneProjectionpublic sealed class PlaneProjectionPublic NotInheritable Class PlaneProjection
<PlaneProjection .../>

Inheritance Hierarchy

Remarks

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 summary

Initializes a new instance of the PlaneProjection class.

Properties summary

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

Identifies the CenterOfRotationX dependency property.

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

Identifies the CenterOfRotationY dependency property.

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

Identifies the CenterOfRotationZ dependency property.

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

Identifies the GlobalOffsetX dependency property.

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

Identifies the GlobalOffsetY dependency property.

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

Identifies the GlobalOffsetZ dependency property.

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

Identifies the LocalOffsetX dependency property.

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

Identifies the LocalOffsetY dependency property.

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

Identifies the LocalOffsetZ dependency property.

Gets the projection matrix of the PlaneProjection.

Identifies the ProjectionMatrix dependency property.

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

Identifies the RotationX dependency property.

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

Identifies the RotationY dependency property.

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

Identifies the RotationZ dependency property.

Constructors

  • PlaneProjection()
    PlaneProjection()
    PlaneProjection()
    PlaneProjection()

    Initializes a new instance of the PlaneProjection class.

    public PlaneProjection()public PlaneProjection()Public Function PlaneProjection() As

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

    Property 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
    CenterOfRotationXProperty

    Identifies the CenterOfRotationX dependency property.

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

    Property Value

  • 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; }public double CenterOfRotationY { get; set; }Public ReadWrite Property CenterOfRotationY As double
    <PlaneProjection CenterOfRotationY="double"/>
    

    Property 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
    CenterOfRotationYProperty

    Identifies the CenterOfRotationY dependency property.

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

    Property Value

  • 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; }public double CenterOfRotationZ { get; set; }Public ReadWrite Property CenterOfRotationZ As double
    <PlaneProjection CenterOfRotationZ="double"/>
    

    Property 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
    CenterOfRotationZProperty

    Identifies the CenterOfRotationZ dependency property.

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

    Property Value

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

    Property Value

    • double
      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; }public static DependencyProperty GlobalOffsetXProperty { get; }Public Static ReadOnly Property GlobalOffsetXProperty As DependencyProperty

    Property Value

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

    Property Value

    • double
      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; }public static DependencyProperty GlobalOffsetYProperty { get; }Public Static ReadOnly Property GlobalOffsetYProperty As DependencyProperty

    Property Value

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

    Property Value

    • double
      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; }public static DependencyProperty GlobalOffsetZProperty { get; }Public Static ReadOnly Property GlobalOffsetZProperty As DependencyProperty

    Property Value

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

    Property Value

    • double
      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; }public static DependencyProperty LocalOffsetXProperty { get; }Public Static ReadOnly Property LocalOffsetXProperty As DependencyProperty

    Property Value

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

    Property Value

    • double
      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; }public static DependencyProperty LocalOffsetYProperty { get; }Public Static ReadOnly Property LocalOffsetYProperty As DependencyProperty

    Property Value

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

    Property Value

    • double
      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; }public static DependencyProperty LocalOffsetZProperty { get; }Public Static ReadOnly Property LocalOffsetZProperty As DependencyProperty

    Property Value

  • ProjectionMatrix
    ProjectionMatrix
    ProjectionMatrix
    ProjectionMatrix

    Gets the projection matrix of the PlaneProjection.

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

    Property Value

  • ProjectionMatrixProperty
    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

    Property Value

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

    Property 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
    RotationXProperty

    Identifies the RotationX dependency property.

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

    Property Value

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

    Property 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
    RotationYProperty

    Identifies the RotationY dependency property.

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

    Property Value

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

    Property 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
    RotationZProperty

    Identifies the RotationZ dependency property.

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

    Property Value

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute
Windows.Foundation.Metadata.ActivatableAttribute
Windows.Foundation.Metadata.ThreadingAttribute

Details

Assembly

Windows.UI.Xaml.Media.dll