There are three states in which docking windows can be: auto-hide, docked, and document. Docking windows can be in these states even when they are in a floating dock host. These states are represented by the Docking
Document windows can only be in the Document state, while tool windows are more flexible and can be in any of the three states.
Note
See the Floating Dock Hosts topic for an explanation of why there is no specific floating state.
The AutoHide State
A tool window is in auto-hide state when its tab appears along one of four outer edges of a dock host. Clicking the tab makes the tool window's content slide into view using a quick animation. The content remains visible while it has focus. When the focus leaves the content area or when the tab is clicked again, the tool window slides back out of view, while its tab remains visible.
The Solution Explorer tool window in AutoHide state with its popup displayed
The Auto
The Docked State
A tool window is considered Docked when it is within a dock host hierarchy but not in auto-hide and not in MDI (the document area).
The Solution Explorer tool window in Docked state
The Docked state is only available to tool windows. Tool windows that are dragged to float are considered in a Docked state in their containing floating dock host.
The Document State
A docking window is in Document state when it is within the MDI area. It could be a tab in tabbed MDI or a window in standard MDI.
The Solution Explorer tool window in Document state (tabbed MDI)
The Solution Explorer tool window in Document state (standard MDI)
The Document state is available to both tool and document windows. Documents that are dragged to float will create an MDI host in their containing floating dock host.
State Changes
The Dockingtrue
, setting the Istrue
, calling the Open method, or calling the Activate method.
The Dock
Alternatively, the Docking