Prevent ToolWindow from being docked as a document

Docking/MDI for WPF Forum

Posted 13 years ago by Simon Rose
Version: 11.1.0542
Avatar
I am sure this must be possible, but I'm missing the right "terminology" and so not finding the correct place and property or event to be using.

Essentially, I am using the TabbedMDIContainer within a Workspace within a DockSite. I have some ToolWindows (just like Solution Explorer in Visual Studio) and I don't want these to be able to be dragged and docked as a MDI document window.

Can I prevent this via a property on the ToolWindow (I have found CanDockLeft etc) or do I have to handle an event and cancel it?

Comments (2)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Simon,

You can set ToolWindow.CanBecomeDocument to false to prevent it from being dropped in the MDI area.


Actipro Software Support

Posted 13 years ago by Simon Rose
Avatar
Thanks for the speedy resolution.

I see how I missed this. I was creating a ToolWindow, but my variable was DockingWindow.

Thanks again!
The latest build of this product (v24.1.1) 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.