Cube Rotation

The C1Cube control can be rotated on the X, Y, and Z axes. You can control the initial rotation of the cube by setting the RotationX, RotationY, and RotationZ properties. By default all three properties are set to 0 and only the front face of the cube is visible:

 

 

When the RotationX, RotationY, and RotationZ properties are all set to 20, however, the cube appears at an angle and three faces are visible:

 

 

You can also use the Rotate and RotateTo methods to rotate or smoothly rotate the cube to a specific angle. You can also use the RotationXChanged, RotationYChanged, and RotationZChanged events to customize what happens when the cube is rotated.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.