Dragging and droping the toolwindow .

Docking/MDI for WPF Forum

Posted 12 years ago by keshav bansal
Version: 11.2.0553
Avatar

Hi,

How to drag and drop the toolwindow from the content part of the toolwindow instead of dragging from the title part of the toolwindow.

Consider my sample application consists of MainWindow as the startup window of the application and two usercontrol named usercontrol1 and usercontrol2 and  these usercontrols will be registered  as the docking window in the MainWindow of the sample application.I am setting the HasTitleBar property to false for these two usercontrols docked as the ddocking window.How to dock the usercontrol1 docked as the toolwindow into the usercontrol2(toolwindow).

Means How to drag or dock   the Titlabarless Toolwindow ?

Comments (1)

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

Hi Keshav,

There is nothing built-in to allow you to drag a ToolWindow by anything other than it's title bar or tab. If you want to allow the user to drag a ToolWindow by it's content area, you would have to hook that up yourself.

You would need to handle a left mouse button down event and call the DragMove method on the ToolWindow. This method requires that the left mouse button be pressed when it is called in order to start the drag operation.


Actipro Software Support

The latest build of this product (v24.1.3) 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.