The problem is: When binding ViewModels to the DocumentItemsSource of DockSite, only one instance of View is created for all ViewModels.
This behavior is similar to the standard TabControl, but it causes a lot of problems. I want to create a new instance of View for each ViewModel.
What workaround can I apply?
Thanks[Modified at 03/03/2011 06:34 PM]
[Modified at 03/03/2011 07:52 PM]
This behavior is similar to the standard TabControl, but it causes a lot of problems. I want to create a new instance of View for each ViewModel.
What workaround can I apply?
Thanks
<docking:DockSite Name="dockSite"
DocumentItemsSource="{Binding DocumentItems}"
DocumentItemContainerStyle="{StaticResource DocumentItemStyle}"
behaviors:DockSiteViewModelBehavior.IsManaged="true">
<docking:Workspace>
<docking:TabbedMdiHost />
</docking:Workspace>
</docking:DockSite>
[Modified at 03/03/2011 07:52 PM]