xceedsoftware / wpftoolkit

All the controls missing in WPF. Over 1 million downloads.
Other
3.82k stars 866 forks source link

DockingManager - MVVM Memory Leak #812

Open xceedsoftware opened 6 years ago

xceedsoftware commented 6 years ago

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)

xceedsoftware commented 6 years ago

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.