This is a migrated thread and some comments may be shown as answers.

Rotating event

1 Answer 40 Views
Cube
This is a migrated thread and some comments may be shown as answers.
martin bertram
Top achievements
Rank 1
martin bertram asked on 30 Nov 2010, 05:03 AM
Hi, is there any way to trigger an event when the cube starts /stops rotating, specifically so I can perform some code on the item on the face that was previously selected or is going to be selected?

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 02 Dec 2010, 06:55 PM
Hello martin bertram,

You can handle the SelectedIndexChanged() event that is raised every time the SelectedIndex is changed, which means that you will be able to access the control on the side that is just selected and implement custom logic for it:
private void RadCube_SelectedIndexChanged(object sender, EventArgs e)
{
    RadCube cube = sender as RadCube;
 
    int newSideIndex = cube.SelectedIndex;
    var newSide = cube.Items[newSideIndex];
}

Please have a look at the attached sample project and let me know if it works for you.

Kind regards,
Tina Stancheva
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
Cube
Asked by
martin bertram
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or