I have a List<DataViewModel> that is listed in a view with a listbox thats bound to this list.
Lets say its model is called DataLoaderViewModel (pretty much as your WPF cinchv2 example, has a View with listbox data bound to the List<DataViewModel>)
In the DataLoaderViewMOdel is have an command reads the currentitem from the collectionview
I then want this dataviewmodel to be opened in a new workspace wit a DataView view and the currentitem as the DataView DataViewModel for editing.
I tried with
var workspaceData = new WorkspaceData(@"/ZebraDesktopClient;component/Images/imageIcon.png",
"DataView", currentDataViewModel, "Data View", true);
Where the curretnDataViewModel is the currentitem from the ViewCollection.
Maybe i need a extra step in my mainwindowmodel to actually set the dataviewmodel as the model for the view , instead of a new one which it now seems to make every time i open a workspace.
I am pretty new to the mvvm/cinch model so it could easily be that i misunderstood how this works, and that i am trying to do so something out of the ordinary.