Force ToolWindows to only dock Left or Right

Docking/MDI for WPF Forum

Posted 7 years ago by Brian Pratt
Version: 16.1.0635
Avatar

I've got a DockSite with a TabbedMDIHost in it, and 3 tool windows.  I want the tool windows to only be allowed to dock on either the left or right.  If nothing is docked on the right, the space for docking takes up no space, but still allows a tool window to be docked there.

Is there a way to force tool windows to only allow left and right docking?

This is the 2016 version of docking (the latest)

Thanks,

Brian

Comments (2)

Posted 7 years ago by Brian Pratt
Avatar

A little more information:

The window looks like this:  [ToolWindowContainer1] [Workspace] [ToolWindowContainer2]

When you drag from ToolWindowContainer1, it should only show "Dock Guides" of left and right of entire window (unless! see below)

When ToolWindowContainer1 is empty, it should not take up space (Workspace fills the empty space)

Within a ToolWindow, items can be docked top and bottm, left and right

ToolWindows can never be docked at the bottom/Top of the entire window (but can within a ToolWindowContainer), or the Workspace

 

Thanks,

Brian

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

Hi Brian,

Yes, check out the "Docking Window Capabilities" topic in the documentation.  One of the recent maintenance releases added the features mentioned in its "Limiting the Allowed Dock Guides While Dragging" section.  Those features let you programmatically limit certain dock directions when moving the mouse over a new dock target.  That seems like exactly what you want.


Actipro Software Support

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