| Intersoft ClientUI 8 > ClientUI Controls > Control Library > Content Controls Overview > ContentPerspective > How-to: Create Perspective Effect using ContentPerspective |
This example shows how to create perspective effect using ContentPerspective.
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.
| 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> |
|
The following code shows the perspective effect of ContentPerspective's is configured by set the RotationY property in the code.
| C# |
Copy Code
|
|---|---|
public MainPage()
{
InitializeComponent();
ContentPerspective1.RotationY = -35;
} |
|