Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Cube > Cube with 6 similar sides programmatically

Not answered Cube with 6 similar sides programmatically

Feed from this thread
  • pratik mehta avatar

    Posted on Jun 17, 2010 (permalink)

    Hello,

        I need to create a cube with 6 faces each having the same look and feel. For example, if I have a Grid with a RadGridView and RadChart on one face, I want to have the same displayed on other faces as well when rotating. My business logic will take care of modifying the faces as per requirement, but as such my UI is same across all faces.

    From a designing point of view, its not ideal to develop 6 sections (copy-pasted) in the Xaml. Is there a way I can have only section (for one face) designed in the xaml and programmatically render on the other 5 faces with rotation.

    Awaiting a quick reply,
    Vish

    Reply

  • Tina Stancheva Tina Stancheva admin's avatar

    Posted on Jun 22, 2010 (permalink)

    Hi pratik mehta,

    The only way to achieve the desired functionality in the RadCube for now is to use a UserControl defining the content of each side of the cube. For example, you can define a UserControl containing a Grid with a RadGridView and a RadChart. However, in the RadCube definition you will need to apply the same user control for each side:
    <telerikNavigation:RadCube x:Name="myCube"
            IsRotateOnClickEnabled="True"
            SelectedIndex="0"
        RotateSpeed="1" IsRotateOnStart="False"
        XWidth="200" YWidth="200" ZWidth="200"
        HorizontalAlignment="Center" VerticalAlignment="Center" >
       <local:MyUserControl/>
       <local:MyUserControl/>
       <local:MyUserControl/>
       <local:MyUserControl/>
       <local:MyUserControl/>
       <local:MyUserControl/>
    </telerikNavigation:RadCube>

    I attached a sample project illustrating this approach. Please take a look at it and let me know if it works for you.

    Greetings,
    Tina Stancheva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Attached files

    Reply

  • Nick avatar

    Posted on Jul 12, 2010 (permalink)

    is there any way to use RADCUBE using VB.Net or C# and not in XAML? Is there sample available?
    Also can I use RadCube in WPF?

    Reply

  • Kiril Stanoev Kiril Stanoev avatar

    Posted on Jul 15, 2010 (permalink)

    Hello Nick,

    Silverlight is a language independent platform so you can develop both on VB and C#. I've prepared a small project demonstrating how to create a cube programatically.
    As for your other question, we do not have RadCube for WPF.

    Greetings,
    Kiril Stanoev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Attached files

    Reply

  • Nick avatar

    Posted on Jul 15, 2010 (permalink)

    Thank you very much. Any possibilty of cube including in WPF?

    Reply

  • Valentin.Stoychev Valentin.Stoychev admin's avatar

    Posted on Jul 19, 2010 (permalink)

    Hello Nick,

    For the moment we don't have such plans.

    Greetings,
    Valentin.Stoychev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Cube > Cube with 6 similar sides programmatically
Related resources for "Cube with 6 similar sides programmatically"

Silverlight Cube Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]