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

[Solved] Best way to use the tabcontrol?

3 Answers 121 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael Schreiber
Top achievements
Rank 1
Michael Schreiber asked on 20 Sep 2010, 09:56 PM
What is the best way to deal with the Tab control as far as compentizing the code?

Do I create independant UserControls and embed the user control in the Telerik tab control?

I don't want to have all the controls be in the main page of the application.

Thanks
Michael

3 Answers, 1 is accepted

Sort by
0
Miro Miroslavov
Telerik team
answered on 23 Sep 2010, 01:45 PM
Hello Michael Schreiber,

 If you are not planning to Bind the TabControl, but use it with static xaml created RadTabItems - I will go with UserControls and add them as content to the TabItems. This will separate the things and won't allow you to mess with the elements between the tabs.
Hope this will help you.

All the best,
Miro Miroslavov
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
0
Michael Schreiber
Top achievements
Rank 1
answered on 30 Sep 2010, 02:38 AM
Thanks Milo.

Can you give me an example of how to add a User Control as Content to the telerik tab control. 

I notice that you are creating a MVVM sample tab application "221447_tabcontrolbinding".

Would you be able to add a View folder to the solution and add a MVVMLightView.xaml file.  See attached image.

Then add the new mvvmlightView.xaml control into the telerik tab control as content.

Thanks
Michael
0
Miro Miroslavov
Telerik team
answered on 05 Oct 2010, 07:29 AM
Hi Michael Schreiber,

 Please find the attached project and let me know if this is right for your needs. If you need more assistance - please let us know.

Kind regards,
Miro Miroslavov
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
Tags
TabControl
Asked by
Michael Schreiber
Top achievements
Rank 1
Answers by
Miro Miroslavov
Telerik team
Michael Schreiber
Top achievements
Rank 1
Share this question
or