PlaneProjection class
Represents a perspective transform (a 3-D-like effect) on an object.
Inheritance
- Object
- DependencyObject
- Projection
- PlaneProjection
Syntax
<PlaneProjection .../>
Attributes
- ActivatableAttribute(NTDDI_WIN8)
- MarshalingBehaviorAttribute(Agile)
- StaticAttribute(Windows.UI.Xaml.Media.IPlaneProjectionStatics, NTDDI_WIN8)
- ThreadingAttribute(Both)
- VersionAttribute(NTDDI_WIN8)
- WebHostHiddenAttribute()
Members
The PlaneProjection class has these types of members:
Constructors
The PlaneProjection class has these constructors.
| Constructor | Description |
|---|---|
| PlaneProjection | Initializes a new instance of the PlaneProjection class. |
Methods
The PlaneProjection class has these methods. It also inherits methods from the Object class.
| Method | Description |
|---|---|
| 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.
| Property | Access type | Description |
|---|---|---|
| Read/write | Gets or sets the x-coordinate of the center of rotation of the object that you rotate. | |
| Read-only | Identifies the CenterOfRotationX dependency property. | |
| Read/write | Gets or sets the y-coordinate of the center of rotation of the object that you rotate. | |
| Read-only | Identifies the CenterOfRotationY dependency property. | |
| Read/write | Gets or sets the z-coordinate of the center of rotation of the object that you rotate. | |
| Read-only | Identifies the CenterOfRotationZ dependency property. | |
| Read-only | Gets the CoreDispatcher that this object is associated with. (Inherited from DependencyObject) | |
| Read/write | Gets or sets the distance that the object is translated along the x-axis of the screen. | |
| Read-only | Identifies the GlobalOffsetX dependency property. | |
| Read/write | Gets or sets the distance that the object is translated along the y-axis of the screen. | |
| Read-only | Identifies the GlobalOffsetY dependency property. | |
| Read/write | Gets or sets the distance that the object is translated along the z-axis of the screen. | |
| Read-only | Identifies the GlobalOffsetZ dependency property. | |
| Read/write | Gets or sets the distance that the object is translated along the x-axis of the plane of the object. | |
| Read-only | Identifies the LocalOffsetX dependency property. | |
| Read/write | Gets or sets the distance that the object is translated along the y-axis of the plane of the object. | |
| Read-only | Identifies the LocalOffsetY dependency property. | |
| Read/write | Gets or sets the distance that the object is translated along the z-axis of the plane of the object. | |
| Read-only | Identifies the LocalOffsetZ dependency property. | |
| Read-only | Gets the projection matrix of the PlaneProjection. | |
| Read-only | Identifies the ProjectionMatrix dependency property. | |
| Read/write | Gets or sets the number of degrees to rotate the object around the x-axis of rotation. | |
| Read-only | Identifies the RotationX dependency property. | |
| Read/write | Gets or sets the number of degrees to rotate the object around the y-axis of rotation. | |
| Read-only | Identifies the RotationY dependency property. | |
| Read/write | Gets or sets the number of degrees to rotate the object around the z-axis of rotation. | |
| Read-only | Identifies 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] |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 12/4/2012
