bgiot[CodePlex] When using DataTemplate automatic binding for view/viewmodel and DocumentSource property of the DockingManager binded to the list of viewmodel, when a document is closed, the corresponding view and viewmodel remain referenced somewhere.
(used Jetbrains dotmemory 4.0 to profile the memory)
bgiot[CodePlex] I attached a sample.
When closing the document, if you profile the memory you will see that the view (SampleView) and the viewmodel (SampleViewModel) are still alive.
bgiot[CodePlex]
When using DataTemplate automatic binding for view/viewmodel and DocumentSource property of the DockingManager binded to the list of viewmodel, when a document is closed, the corresponding view and viewmodel remain referenced somewhere. (used Jetbrains dotmemory 4.0 to profile the memory)