[Expand]General Information
[Collapse]WinForms Controls
 [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
     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]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

How to: Combine panels into a split container

The following code creates two panels. One panel is docked to the left edge of the form, the second one is floating. The floating panel is then docked to the first panel and this creates a split container.

Then a new floating panel is created. It's then added as a new item to the created split container at the first position. In this example panels are docked to other panels via the DockPanel.DockTo method. However it's also possible to create and dock a panel to another panel via the DockPanel.AddPanel method.

The result is shown below:

Is this topic helpful?​​​​​​​