Tab Control and MVVM

2 posts, 0 answers
  1. John
    John avatar
    2 posts
    Member since:
    Aug 2010

    Posted 23 Sep 2010 Link to this post

    We're in the beginning throws of creating a new application using Silverlight (4.0), MVVM, and Rad Controls...

    The tab control will be the main "shell" of our application that the user will interact with.  Our first tab is a search tab and from there, they will navigate to other areas of the system.

    We have created user controls to use inside of these tabs.  Here is where the question comes in:

    What is the best way, using MVVM, to setup this scenario for navigation from one tab to another based off of button clicks inside of a user control?

    For example, if the user clicks on a button inside of our search control (which is housed inside of a tab), how do we go about adding a new tab?  I guess the issue we are having is "How do we respond to events (using MVVM and the tab control) in our user controls to talk with our "shell" (tab control) ?

    If there is example code of the "best" way to setup a project using MVVM and the tab control as the "shell", we'd love to see it!

    Many thanks in advance,

  2. Miro Miroslavov
    Miro Miroslavov avatar
    588 posts

    Posted 29 Sep 2010 Link to this post

    Hi John,

     Can you please find the attached example project. It shows how to use MVVM, Bindings and TabControl. I'm using also MVVM Light, which can help you a lot with the MVVM. 
    Also I will continue to work on this example and  make a  post very soon in my blog
    Hope this will help you.

    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