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 DesignWinForms UI Controls WinForms Buttons UI Control WinForms Calendar UI ControlWinForms Carousel UI ControlWinForms Chart UI ControlWinForms Clock UI ControlCommandBar UI ControlWinForms Dock UI ControlDock - Getting Started Architecture and Features Arrange WindowsFloating WindowsAuto-Hide WindowsContext MenuReDockObject Model Create a Dock WindowCreate WindowRemove WindowAdvanced LayoutTab & CaptionAllowed Dock StatesUser Control and FormsLoad and Save LayoutDock - LocalizationDesktop Alert UI ControlDropDown List UI ControlWinForms Editor UI ControlForms and Dialogs UI ControlWinForms GridView UI ControlWinForms ListView UI ControlWinForms Menu UI ControlWinForms ComboBox UI ControlWinForms PageView UI ControlPanels and Labels UI ControlWinForms Panorama UI ControlWinForms PDFViewer UI ControlWinForms Property Grid UI ControlWinForms Ribbon UI ControlWinForms PivotGrid UI ControlWinForms RichTextBox UI ControlWinForms Rotator UI ControlWinForms Scheduler UI ControlWinForms Shortcuts UI ControlWinForms SpellChecker UI ControlWinForms Track & Status UI ControlWinForms TreeView UI ControlWinForms Wizard UI ControlWinForms Test UI ControlWinForms Theme UI Control |