DockWindow is the control that defines a docking window. It is always hosted within the DockWindowGroup which provides the shell for one or more DockWindow controls. Image below shows key DockWindow control properties:

Here is the list of key properties, events and commands provided by DockWindow:

Properties

CanDockLeft, CanDockRight, CanDockTop, CanDockBottom – Indicates whether DockWindow can be docked to specified sides. Default value is true.
CanDockAsDocument – Indicates whether dock window can be docked as document in the document area of the dock site. Default value is true.
CanTearOff – Indicates whether dock window can be torn off from the DockWindowGroup.
CanFloat – Indicates whether dock window can be placed into the floating state.
IsFloating – Gets whether the dock window is floating.
FloatingRect – Indicates the default or last floating rectangle for the dock window.
CanAutoHide – Indicates whether dock window can be placed into the auto-hide state.
IsAutoHide – Gets or sets whether dock window is in auto-hide mode.
AutoHideOpen – Gets or sets whether dock window is open while in auto-hide mode. Property is valid only when IsAutoHide=true.
CanClose – Indicates whether dock window can be closed (hidden).
OptionsMenu – Indicates whether the options menu button is visible.
CustomOptionsMenu – Specifies the custom ContextMenu to be displayed instead of the built-in system menu provided by Wpf-Dock control.
Image, ImageSource – Specify the image for dock window displayed on docking tabs. These properties are mutually exclusive, you should use only one of them to specify the image but not both. Note that you are not restricted to the images only when setting the Image property. You can assign any WPF Visual as well.
Header – Specifies the dock window text that is displayed on the dock tabs and on the DockWindowGroup caption.
Description – Provides an option description for dock window which is displayed on the dock window switching interface shown using Ctrl+Tab keys.
IsSelected – Gets or sets whether dock window is selected.

DockSite.ActiveDockWindow – Gets the currently active/focused DockWindow.

Events

Selector.SelectedEvent – Occurs when DockWindow is selected by user. Note that this is selection not focus. There could be any number of windows selected. Think tabs. For focus based events see below Activated and Deactivated events.
Selector.UnselectedEvent – Occurs when DockWindow is un-selected. Note that both Selected and Unselected events are bubbling events, meaning that they will bubble up to the DockSite and it is best that they are handled there.
AutoHideChanged – Occurs when window IsAutoHide property changes, i.e window is placed or brought out of the auto-hide state.
AutoHideOpenChanged – Occurs when AutoHideOpen property changes, i.e. window in auto-hide state is open or closed.
Closing – Occurs before dock window is closed (hidden). This event provides you with the option to cancel the closing of the window using Cancel property on event arguments.
Closed – Occurs after dock window is closed.
Activated – Occurs after dock window is activated, i.e. receives the input focus. This is bubbling event and you can handle it on DockSite.
Deactivated – Occurs after dock window is deactivated, i.e. loses the input focus.This is bubbling event and you can handle it on DockSite.

DockSite events

BeforeDockingStarts – Occurs before docking operation for a DockWindow or DockWindowGroup starts and allows you to cancel the operation.
BeforeDocked – Occurs before docking operation for a DockWindow or DockWindowGroup is complete and allows you to cancel the docking.
AfterDocked – Occurs after an docking operation for a DockWindow or DockWindowGroup is completed.

Commands

ToggleAutoHide – Toggles the dock window auto-hide state.
OpenAutoHide – Opens the dock window while window is in auto-hide state.
CloseAutoHide – Closes the dock window when window is in auto-hide state and open.
Close – Closes the dock window.
Float – Floats the dock window.
ReDock – Re-docks the dock window that is in floating state and was previously docked.
DockAsDocument – Docks window as document.
SelectWindow – Selects the docking window.

Related posts:

  1. How To Start Using Wpf-Dock Control
  2. How to access WPF Dock Floating Window
  3. How to Create WPF Docking Windows Using Code Only
  4. Docking Control support for Windows Forms or other windowed controls in DotNetBar for WPF
  5. How to customize WPF Office 2007 Color Schemes