Programatically removing a ToolWindow

Docking/MDI for WPF Forum

Posted 16 years ago by dmelinosky
I know the sample app shows how to programatically add a ToolWindow, but how do I do the reverse?

I remove the ToolWindow from the DockSites ToolWindows collection, but that doesn't seem to be enough.



Comments (2)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
If you call ToolWindow.Destroy() it should remove it from the DockSite and from the UI. I think that is demoed in the sample as well via a Destroy button in one of the tool windows. Let us know if that doesn't do the trick.

Actipro Software Support

Posted 16 years ago by dmelinosky
Yup, I found that actually right after I posted ( isn't that always the way it happens )
The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.