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

Tab Control and MVVM

1 Answer 96 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 23 Sep 2010, 04:33 PM
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,

JOHN

1 Answer, 1 is accepted

Sort by
0
Miro Miroslavov
Telerik team
answered on 29 Sep 2010, 01:06 PM
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.

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
John
Top achievements
Rank 1
Answers by
Miro Miroslavov
Telerik team
Share this question
or