Hello everybody, I’m a starter with Silverlight and the MVVM Light Toolkit and I don’t know how to proper solve the following scenario:
I have the following views with their corresponding viewModels:
- MainView , the Deault Startpage
- TabControlView, view with a single Tabcontrol, placed on the MainView…
- AllBugsGridView, datagrid with all bugs.
- BugDetailView, view where the details of a single bug is showed, or a new bug can be added.. (datafields, labels, etc)
Now my target is the following:
I want to have a tabitem with an AllBugsGridView as content. (No Problem)
Now when a user is making a double click on an item in the datagrid it should create a new tabItem with a bugDetailView inside showing the Details of the Grid Item. It Should be possible to have as many open tabitems as the user wants .
Further the user can add a new Bug over a button and a new tab opens with an empty bugDetailView.
Has anybody a proper solution for that. I don’t know how I can dynamically create new Views and ViewModels and wire them together.
Thank you very much for your answers.
Best regards
Hans