Best way to use the tabcontrol?

4 posts, 0 answers
  1. Michael Schreiber
    Michael Schreiber avatar
    9 posts
    Member since:
    Mar 2004

    Posted 20 Sep 2010 Link to this post

    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
  2. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 23 Sep 2010 Link to this post

    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
  3. DevCraft banner
  4. Michael Schreiber
    Michael Schreiber avatar
    9 posts
    Member since:
    Mar 2004

    Posted 29 Sep 2010 Link to this post

    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
  5. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 05 Oct 2010 Link to this post

    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
Back to Top