Rotating event

2 posts, 0 answers
  1. martin bertram
    martin bertram avatar
    11 posts
    Member since:
    Oct 2009

    Posted 29 Nov 2010 Link to this post

    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?
  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 02 Dec 2010 Link to this post

    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
  3. DevCraft banner
Back to Top