This project is read-only.

DragMove a window title bar programatically

Sep 22, 2012 at 8:42 AM

I was searching for a solution to this in wpf:

Drag over a button, opens then a window, the mouse should grab the window with the left button still pressed (by the title bar to activate AvalonDock), and then just DragMove() to reposition/docking wherever you want.

Having problems with all the steps so far... Couldn't correlate the position of the opened window with the mouse position.

floatingWindow.DragMove() works but avalon docking system is not activating. I had to call click event to activate the current window for avalon, but finding the title bar is hard. Is it a easier way to attach a mouse to a window?

 

Infel.