One very strong MSDN article on MVVM from Josh Smith contains a sample that dynamically adds tabs to a content section of a tab control. One of the keys to this article is the DataTemplating that ties the ViewModel of the observable collection to the view to be represented, thus allowing the dynamic addition and removal of content in the tab control.
I am looking to perform the same thing, but with the DocumentContentHost of the DockManager, dynamically adding/removing ContentPanes based on the collection of detail ViewModels. Has anyone successfully been able to accomplish something like this?
<StrugglingButPersistent>JH</StrugglingButPersistent>
I have resolved the issue. The result (and sample code) can be found here.
Using VS2010 with version v11.2 of the dock manager new tabs don't get focus. When opened they are behind existing tabs. Any idea why this is happening?
Hi Jason,
I'm looking at your sample (MVVMDockManager) but can't get the SetActiveWorkspace function to work.. can you help?