- Online Barcode Generator
- How To
- Buy Now
Run Time Support by Dock Control in C# Windows Forms
The WinForm Dock Control determines all the behavior managed by ToolWindows and DocumentWindows, including enable the basic capabilities of docking, floating and hiding, handle tabbed document behavior, serialization of layout and providing access to collections of managed dockable objects.
How to Create Dock at Runtime
The following is a sample that shows how to create a Dock in C# code, construct a Dock, set properties and add the Dock to a form and docks a single ToolWindow to it at runtime.
Developers need to specify a target ToolWindow to configure the DockPosition of the ToolWindow to Fill. If there is no target ToolWindow when developers setting the DockPosition of a ToolWindow to Fill, the ToolWindow cannot be filled with the Dock entirely. It behaviors as it does in Microsoft Visual Studio. Developers need to dock a ToolWindow to a side and set the property of MainDocumentContainerVisible as false if they want to occupy the Dock completely with a ToolWindow.
How to Access Dock Windows
The properties of Dock Control for Windows Forms return an array of all DockWindow with a WinForms Dock instance and give developers 2 helpful properties and one method, they are list below
It is also possible to get a desired ToolWindow or DocumentWindow by specifying its Name as an index:
UI Controlsfor Windows Forms.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls