Programatically removing a ToolWindow

Docking/MDI for WPF Forum

Posted 16 years ago by dmelinosky
Avatar
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.

Thanks,

Dave

Comments (2)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
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
Avatar
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.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.