Remove the child from DockingManager
Closed children are moved to the “Hidden dock state” so that it does not release memory. You have to manually remove the children from DockingManager in DockStateChanged event.
Remove memory held by Automation peer
DocumentContainer of DockingManager is derived from the base of Tab control. Normally TabItems Automation peer holds some memory. That memory also needs to be released by the FakeWindowAutomationPeer method as follows.
Create FakeWindowAutomationPeer class
Create a new class derived from WindowAutomationPeer class and define the override method GetChildrenCore(), and define OnCreateAutomationPeer() override method in MainWindow.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|