Intersoft ClientUI 8 > ClientUI Controls > Control Library > Content Controls Overview > ContentProjector > How-to: Configure the Projection Settings in ContentProjector |
This example shows how to configure the projection settings in ContentProjector.
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.
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> |
The following code shows to configure the projection of ContentProjector by changing the RotationX and RotationY properties in code behind.
C# |
Copy Code
|
---|---|
public MainPage()
{
InitializeComponent();
contentProjector1.RotationX = -10;
contentProjector1.RotationY = 30;
} |