The C1Cube control can be dragged and manipulated at run time if the IsDraggable property is set to True. When the IsDraggable property is set to True, the cube can be rotated at run time by performing a drag-and-drop operation. See Cube Interaction for more information.
Note: When IsDraggable is True, items within the cube by default cannot be interacted with.
The following steps customize the C1Cube control at design time, in XAML, and in code.
At Design Time
To set the IsDraggable property at design time, complete the following steps:
1. Click the C1Cube control once to select it.
2. Navigate to the Properties window and check the check box next to the IsDraggable item.
In XAML
For example, to set the IsDraggable property, add IsDraggable="True" to the <c1ext:C1Cube> tag so that it appears similar to the following:
<c1ext:C1Cube x:Name="C1Cube1" Height="300" Width="300" IsDraggable="True">
In Code
For example, to set the IsDraggable property, add the following code to your project:
Me.C1Cube1.IsDraggable = True
•C#
this.c1Cube1.IsDraggable = true;
What You've Accomplished
The C1Cube control can now be dragged and manipulated at run time. Run the application and note that you can rotate the cube by performing a drag-and-drop operation.