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

TabControl,RibbonBar,Prism,Unity

1 Answer 83 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Darryl
Top achievements
Rank 1
Darryl asked on 30 Nov 2012, 02:44 AM
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.

1 Answer, 1 is accepted

Sort by
0
Accepted
Tina Stancheva
Telerik team
answered on 04 Dec 2012, 02:25 PM
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.

Tags
TabControl
Asked by
Darryl
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or