Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Collapse]Docking Library
   [Expand]Panels and Panel Containers
    Header Buttons
   [Expand]Managing Dock Panels in Code
    Saving and Restoring the Layout of Dock Panels
   [Collapse]Examples
     How to: Access auto-hidden panels
     How to: Add controls to a panel
     How to: Combine panels into a split container
     How to: Combine panels into a tab container
     How to: Create a dock panel
     How to: Create and float a panel
     How to: Display all the hidden panels
     How to: Dock panels to a form
     How to: Enable the auto hide feature for root panels
     How to: Override the default behavior of a panel when it is closed
     How to: Prevent dock panels from being docked to the form's right edge
     How to: Recursively iterate through the child panels of a specific panel
     How to: Transform a split container into a tab container
     How to: Write and read a docking layout to and from an XML file
     How to: Write and read a docking layout to and from memory
     How to: Write and read a docking layout to and from the system registry
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Add controls to a panel

In the following example a new panel is created and floated. Then a property grid is added to the panel and this lists the dock panel's properties. To add visual controls to the panel, the DockPanel.ControlContainer property is used. The result is shown below:

How would you rate this topic?​​​​​​​