View on GitHub

dotnet-eud

.NET Controls End-User Documentation

Dock Panels

This topic describes the most common runtime operations for dock panels.

Docking Hints

Dock panels can be docked, floating or auto-hidden. To dock or undock a panel, simply click its header and drag the panel. As you drag the panel over an application form, docking hints appear (see the figure below). Use these hints to dock the panel to the desired position.

Docking EndUser - Hints

Docking hints are semi-transparent square elements that allow you to dock a panel to a form’s edges, or to an existing container as a tab, or between other docking elements. These hints are displayed separately or grouped in a docking guide (e.g., in the form’s central area). Finally, a docking zone is a semi-transparent preview of exactly where your panel will be docked. This zone is displayed when you drag a panel into a docking hint, but before you drop it.

Buttons

Dock panels have multiple state change buttons in their top right corner.

Context Menu

Most docking operations are available from the panel’s context menu, displayed on right-click. The figure below illustrates the context menu for a docked panel.

Docking EndUser - DockPanel Context Menu

For dock panels docked as tabbed documents, the context menu displays multiple additional items, which allow you to pin the panel or start a new horizontal or vertical group within the docked area (see the image below).

Docking EndUser - DockPanel Context Menu2

Interoperability with Documents and Other Dock Panels

When dragging a dock panel, you can dock it to other dock panels. This will create a dock panel container that presents both panels as tabs. Note that in addition to docking panels via docking hints, you can also drag them to the tab header area. This allows you to instantly rearrange panels within the container (see the animation below).

Docking EndUser - DockToCaptionRegion GIF

Dock panels can be docked to both the dock panel docking areas (the form’s edges) as well as to the tabbed View. Documents, however, can only be docked within the tabbed View, and not to the docking areas.

Mouse Operations and Hotkeys