How to tell the dock position changed for a tool window

Docking/MDI for Windows Forms Forum

Posted 14 years ago by Roger Rong
Avatar
Just wondering any event/property to indicate that a tool window's dock position has been changed by users by dragging it around, for example when user drag a tool window from the left dock position to right position.

Also I would like to know what is the current dock position.

Thanks in advance.

Comments (3)

Posted 14 years ago by Roger Rong
Avatar
Had a try, it seems that the "ToolWindowDrag" event of the dockmanager fires when a tool window is dragged to a new dock position.

But how to tell its new dock position? Sorry the "dock position" is a little bit misleading, What I tried to to say was the dock type, for example dock to left or right.
Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Roger,

Each ToolWindowContainer (which contains docked tool windows) has a RootDock property that says which side the container is docked on. So ToolWindow.ToolWindowContainer.RootDock should work for tool windows docked in the host.


Actipro Software Support

Posted 14 years ago by Roger Rong
Avatar
Thanks, that is exactly I am after :).
The latest build of this product (v2020.1 build 0400) was released 3 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.