we are using ActiPro-TabbedMdiHost inside a DockSite following MVVM-Pattern regarding the Example given by ActiPro. The Bindings (DocumentItemsSource, ToolItemsSource) work fine. We attach a Style for both and inside the Styles we set the property "ContentTemplateSelector" and establishing new Document-/ToolWindows works great with the assigned DataTemplates.
Now two issues / questions arised:
1. If we use ItemContainerRetentionMode="Wrapped" the DataContext of the View is not set to the ViewModel but to the wrapping ContentControl.
2. What happens after Closing a DocumentWindow? We understood the documentation so far, that the window-object still exists but is not open. Is there any connection between ViewModel-DataTemplate-View-Window still existing?