Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

UIElement.Projection Property

May 02, 2013

Gets or sets the perspective projection (3-D effect) to apply when rendering this UIElement.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
public Projection Projection { get; set; }
<uiElement>
  <uiElement.Projection>
    singleProjection
  </uiElement.Projection>
</uiElement>

XAML Values

singleProjection

A single object element for a class that derives from Projection. Typically this is a PlaneProjection.

Property Value

Type: System.Windows.Media.Projection
The perspective projection to apply when rendering this UIElement. The default is null (no perspective applied).

Dependency property identifier field: ProjectionProperty

Projection is the base class type that this property uses, but Projection does not implement a practical behavior. The existing practical class that can be used for a projection effect is PlaneProjection.

The following example sets the Projection property to a PlaneProjection in order to rotate a StackPanel as if it is in 3-D space.

    <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="Tap" Width="100" />
    </StackPanel>

Windows Phone OS

Supported in: 8.0, 7.1, 7.0

Windows Phone

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.