Can I drag and dock a ToolWindow after setting ToolWindowsHaveTitleBars="False"

Docking/MDI for WPF Forum

Posted 6 years ago by yww
Version: 13.1.0582
Avatar

As title, the reason I set  ToolWindowsHaveTitleBars="False" is because my control already has a title bar which contains many complex controls. 

And I want to keep the existing title bar part of the the exisitng control, instead of putting it to the title bar of ToolWindow, because I may also want to put my control somewhere without the docking site. So I want to keep the integrity of my control.

After setting the ToolWindowsHaveTitleBars to false, I found these ToolWindow no longer draggable. So Is that a way to (like implementing certain interface) enable the ToolWindow can be dragged by holding mouse in some appointed area?

Comments (2)

Answer - Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello, as long as you are sure the left mouse button is down, DocumentWindow, ToolWindow, and the various containers all have DragMove() methods you can call to programmatically start a drag.


Actipro Software Support

Posted 6 years ago by yww
Avatar

Awesome! 

The latest build of this product (v2019.1 build 0683) 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.