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 stay in memory.
Comments: ** Comment from web user: bgiot **
Comments: ** Comment from web user: bgiot **
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.