Reflector for Windows Phone supports plane projections, which allows a two-dimensional control to be drawn on a three-dimensional plane. All parts of the control will still function as they would on a two-dimensional plane.
The three-dimensional effect is created by rotating the control along three separate planes – X, Y, and Z. You can set the rotation, center of rotation, global offset, and local offset of each of the three planes; this means that, in total, there are twelve properties that can be set to alter the projection of the C1Reflector control. Each property is described in the table below.
Property | Description |
RotationX | Gets or sets the number of degrees to rotate the object around the x-axis of rotation. |
RotationY | Gets or sets the number of degrees to rotate the object around the y-axis of rotation. |
RotationZ | Gets or sets the number of degrees to rotate the object around the z-axis of rotation. |
CenterOfRotationX | Gets or sets the x-coordinate of the center of rotation of the object you rotate. |
CenterOfRotationY | Gets or sets the y-coordinate of the center of rotation of the object you rotate. |
CenterOfRotationZ | Gets or sets the z-coordinate of the center of rotation of the object you rotate. |
GlobalOffsetX | Gets or sets the distance the object is translated along the x-axis of the screen. |
GlobalOffsetY | Gets or sets the distance the object is translated along the y-axis of the screen. |
GlobalOffsetZ | Gets or sets the distance the object is translated along the z-axis of the screen. |
LocalOffsetX | Gets or sets the distance the object is translated along the x-axis of the plane of the object. |
LocalOffsetY | Gets or sets the distance the object is translated along the y-axis of the plane of the object. |
LocalOffsetZ | Gets or sets the distance the object is translated along the z-axis of the plane of the object. |
You can alter the projection of the entire C1Reflector control using the Projection property or you can just alter the projection of the control's content with the ContentProjection property. The results will be slightly different. If you alter the projection of the entire control, the project of both the content of the reflection will change. If you alter the projection of the content, only the projection of the content will change and then the reflection will mirror that change. You can set the control or content projection in XAML or in code, but it's easier to adjust the settings in Blend until you have achieved the look that you want.