PlaneProjection class

Applies to Windows and Windows Phone

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

Inheritance

Object
  DependencyObject
    Projection
      PlaneProjection

Syntax


public sealed class PlaneProjection : Projection


<PlaneProjection .../>

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

Members

The PlaneProjection class has these types of members:

Constructors

The PlaneProjection class has these constructors.

ConstructorDescription
PlaneProjection Initializes a new instance of the PlaneProjection class.

 

Methods

The PlaneProjection class has these methods. It also inherits methods from the Object class.

MethodDescription
ClearValue Clears the local value of a dependency property. (Inherited from DependencyObject)
GetAnimationBaseValue Returns any base value established for a dependency property, which would apply in cases where an animation is not active. (Inherited from DependencyObject)
GetValue Returns the current effective value of a dependency property from a DependencyObject. (Inherited from DependencyObject)
ReadLocalValue Returns the local value of a dependency property, if a local value is set. (Inherited from DependencyObject)
SetValue Sets the local value of a dependency property on a DependencyObject. (Inherited from DependencyObject)

 

Properties

The PlaneProjection class has these properties.

PropertyAccess typeDescription

CenterOfRotationX

Read/writeGets or sets the x-coordinate of the center of rotation of the object that you rotate.

CenterOfRotationXProperty

Read-onlyIdentifies the CenterOfRotationX dependency property.

CenterOfRotationY

Read/writeGets or sets the y-coordinate of the center of rotation of the object that you rotate.

CenterOfRotationYProperty

Read-onlyIdentifies the CenterOfRotationY dependency property.

CenterOfRotationZ

Read/writeGets or sets the z-coordinate of the center of rotation of the object that you rotate.

CenterOfRotationZProperty

Read-onlyIdentifies the CenterOfRotationZ dependency property.

Dispatcher

Read-onlyGets the CoreDispatcher that this object is associated with. (Inherited from DependencyObject)

GlobalOffsetX

Read/writeGets or sets the distance that the object is translated along the x-axis of the screen.

GlobalOffsetXProperty

Read-onlyIdentifies the GlobalOffsetX dependency property.

GlobalOffsetY

Read/writeGets or sets the distance that the object is translated along the y-axis of the screen.

GlobalOffsetYProperty

Read-onlyIdentifies the GlobalOffsetY dependency property.

GlobalOffsetZ

Read/writeGets or sets the distance that the object is translated along the z-axis of the screen.

GlobalOffsetZProperty

Read-onlyIdentifies the GlobalOffsetZ dependency property.

LocalOffsetX

Read/writeGets or sets the distance that the object is translated along the x-axis of the plane of the object.

LocalOffsetXProperty

Read-onlyIdentifies the LocalOffsetX dependency property.

LocalOffsetY

Read/writeGets or sets the distance that the object is translated along the y-axis of the plane of the object.

LocalOffsetYProperty

Read-onlyIdentifies the LocalOffsetY dependency property.

LocalOffsetZ

Read/writeGets or sets the distance that the object is translated along the z-axis of the plane of the object.

LocalOffsetZProperty

Read-onlyIdentifies the LocalOffsetZ dependency property.

ProjectionMatrix

Read-onlyGets the projection matrix of the PlaneProjection.

ProjectionMatrixProperty

Read-onlyIdentifies the ProjectionMatrix dependency property.

RotationX

Read/writeGets or sets the number of degrees to rotate the object around the x-axis of rotation.

RotationXProperty

Read-onlyIdentifies the RotationX dependency property.

RotationY

Read/writeGets or sets the number of degrees to rotate the object around the y-axis of rotation.

RotationYProperty

Read-onlyIdentifies the RotationY dependency property.

RotationZ

Read/writeGets or sets the number of degrees to rotate the object around the z-axis of rotation.

RotationZProperty

Read-onlyIdentifies the RotationZ dependency property.

 

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>


Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Media
Windows::UI::Xaml::Media [C++]

Metadata

Windows.winmd

See also

3-D effects for Windows Store apps
Projection

 

 

Show:
© 2014 Microsoft