New to Telerik UI for WinFormsStart a free 30-day trial

AllowedDockStates

Updated over 6 months ago

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.

C#
toolWindow1.AllowedDockState = AllowedDockState.Docked | 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:

WinForms RadDock AllowedDockStates

The following setting will disable the Floating option:

Disable the floating dock state

C#
toolWindow1.AllowedDockState = ~AllowedDockState.Floating;

WinForms RadDock Disable the Floating Dock State

See Also

In this article
See Also
Not finding the help you need?
Contact Support