Repositioning the floated toolwindow without doubleclicking the titlebar of that toolwindow.

Docking/MDI for WPF Forum

Posted 12 years ago by keshav bansal
Version: 11.2.0553
Avatar

Hi,

How to Repositioning the floated toolwindow without doubleclicking the titlebar of that toolwindow.

Consider y sample application have 1 toolwindow that does not have titlebar and still i can easily dock and float the toolwindow by dragging from any position of the toolwindow using the code below that is used in the cs file of the toolwindow.

protectedoverridevoid OnGotMouseCapture(MouseEventArgse)

{

DragMove();

}

Once the toolwindow is floated by the user that does not have titlebar and then user wants to reposition the toolwindow by doubleclicking the any position of the toolwindow.

Same functionality is working only on the titlebar of the toolwindow.

Comments (1)

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

Hi Keshav,

I'm sorry, I don't understand your question. If there is no titlebar or tab for the ToolWindow, then you must perform any floating/docking operation yourself. This could be through a menu item, a button, or via double click on your content. In all those cases, you would need to call one of the various methods on the ToolWindow to Float or Dock it.

If you are refering to "restoring" to the old position, then calling Dock() with no parameters should restore it to it's previous location.

[Modified 12 years ago]


Actipro Software Support

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.