Intersoft ClientUI Documentation
How-to: Create Perspective Effect using ContentPerspective

This example shows how to create perspective effect using ContentPerspective.

Example

Description

ContentPerspective is a lightweight content control that adds a unique perspective effect when the content is applied with projection transform

The following code shows the perspective effect of ContentPerspective's is configured by set the RotationY property in the XAML.

Code

XAML
Copy Code
<Intersoft:ContentPerspective x:Name="ContentPerspective1" HorizontalAlignment="Center" VerticalAlignment="Center" VerticalContentAlignment="Center" Width="200" Height="200" RotationY="-35">
    <Image Source="/ClientUIApplication1;component/Images/Application_and_Software_1.jpg"></Image>
</Intersoft:ContentPerspective>

Example

Description

The following code shows the perspective effect of ContentPerspective's is configured by set the RotationY property in the code.

Code

C#
Copy Code
public MainPage()
{
    InitializeComponent();
    ContentPerspective1.RotationY = -35;
}
See Also

Concepts

Other Resources