Hi,
I saw the documentation to bind the collection dock items to the docking manager here.
Data Binding in WPF Docking control | Syncfusion
But when I close the window, I want the instance to also be removed, because the items in this collection can be instantiated many times. However, when I look at the collection it is still there.
What is the preferred way to remove from the ObservableCollection when the window is closed so that the dock item can be cleaned up?
Is it to handle WindowClosing event?
If so, how to access the DockItem in this case?