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
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