New to Telerik UI for WinForms? Download free 30-day trial


AllowedDockState property gives you the ability to determine the available dock states per ToolWindow. There are several options for this properties which can be combined by bitwise operations. For example:

Allow two states only.

toolWindow1.AllowedDockState = AllowedDockState.Docked | AllowedDockState.Floating;

toolWindow1.AllowedDockState = AllowedDockState.Docked Or AllowedDockState.Floating

This automatically will remove the caption buttons that may be responsible for an unwanted state, for example Closed. In addition, the unwanted menu items from the context menu will be disabled:

dock-object-model-allowed-dock-states 001

The following setting will disable the Floating option:

Disable the floating dock state.

toolWindow1.AllowedDockState = ~AllowedDockState.Floating;

toolWindow1.AllowedDockState = Not AllowedDockState.Floating

dock-object-model-allowed-dock-states 002

See Also

In this article
Not finding the help you need? Improve this article