Intersoft ClientUI Documentation
How-to: Configure the Projection Settings in ContentProjector

This example shows how to configure the projection settings in ContentProjector.

Example

Description

ContentProjector is a versatile and lightweight content control for applying two-way planar projection.

The following code shows to configure the projection of ContentProjector by changing the RotationX and RotationY properties in XAML.

Code

XAML
Copy Code
<Intersoft:ContentProjector HorizontalAlignment="Center" Name="contentProjector1" VerticalAlignment="Center" Width="200" Height="200" RotationY="30" RotationX="-10">
    <Image Source="/ClientUIApplication1;component/Images/Application_and_Software_1.jpg"></Image>
</Intersoft:ContentProjector>

Example

Description

The following code shows to configure the projection of ContentProjector by changing the RotationX and RotationY properties in code behind.

Code

C#
Copy Code
public MainPage()
{
    InitializeComponent();
    contentProjector1.RotationX = -10;
    contentProjector1.RotationY = 30;
}
See Also

Concepts

Other Resources