TabControl,RibbonBar,Prism,Unity

2 posts, 1 answers
  1. Darryl
    Darryl avatar
    6 posts
    Member since:
    Oct 2012

    Posted 29 Nov 2012 Link to this post

    I was looking over posts for TabControl,Prism, MEF in this forum and found a lot of really good information, but are there any examples that might help me with setting up commands from a RibbonBar to focus a specific tab on one of the module views that contains a tab control.  We have been able to wire commands to focus the View holding the tab control but need some help selecting the tab.

    Thanks.
  2. Answer
    Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 04 Dec 2012 Link to this post

    Hi Darryl,

    Firstly, I want to let you know that the RadRibbonBar control will be removed from our suite of control with the next official release. This is why I'd like to strongly encourage you to replace your RibbonBar definition with a RibbonView definition instead. The RibbonView control is our new ribbon UI implementation and it supports more extended scenarios than the old control. Furthermore, the APIs of the two controls are almost the same, which makes the upgrade easier.

    Please do try to replace your RibbonBar definitions with RibbonViews instead and let us know if you encounter any issues.

    Now, back to your question. Unfortunately, as I'm not sure how you've set up your view and commands logic, I don't know what approach will best suit your case. However, the RadTabControl selection can be controlled via a number of properties:
    • RadTabItem.IsSelected - you can bind this property to business objects and control the value of the business objects when the ribbon commands are executed
    • RadTabControl.SelectedIndex - you can bind this index to a business object and control the value of the business object when the ribbon commands are executed
    • RadTabControl.SelectedItem - you can bind this property to a business object and control the value of the business object when the ribbon commands are executed
    I hope this information will help you choose the best approach for your scenario. And if you encounter any issues, you can send over your solution and we'll gladly take a closer look at it.

    All the best,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
Back to Top