How to force a floating docking window
Docking panels have a DockType
property that specifies how the panel is presented to the user. This can be set to one of the values of the DockType
enumeration.
Code Example:
// dc could be an already instantiated DockControl DockControl dc = new DockControl(); dc.DockType = DockType.Floating;
The DockType
enumeration is defined as in the code snippet below. Note that setting a DockType
of Floating
and then back to Dockable
doesn't automatically place the docking panel back where it was originally (before it was made floating).
DockType definition:
public enum DockType { Floating, Dockable, TabbedDocument, AutoHide, Hide, }