Panels can contain other panels as children. By default child panels are arranged within the parent panel side by side and thus the parent panel represents a split container. The split container's Tabbed property always returns false. By setting the Tabbed property to true the split container is transformed into a tab container (child panels will be arranged as tab pages). Conversely by setting the Tabbed property to false the tab container is transformed into a split container.
Note: changing the Tabbed property is in effect only for the panels which own other panels (the Count property must be greater than zero). Such panels are automatically created when dock panels are added to other panels.
To form a tab container, the DockAsTab method can also be used.

Example
In the following example three panels are created and docked to form a split container. Then the Tabbed property of the split container is set to true and this transforms the split container into a tab container. The result is shown below:

C# |
using DevExpress.XtraBars.Docking;
DockPanel p1 = dockManager1.AddPanel(DockingStyle.Left);
p1.Text = "Panel 1";
DevExpress.XtraEditors.SimpleButton btn = new DevExpress.XtraEditors.SimpleButton();
btn.Text = "Print...";
p1.ControlContainer.Controls.Add(btn);
DockPanel p2 = p1.AddPanel();
p2.Text = "Panel 2";
DockPanel p3 = p1.ParentPanel.AddPanel();
p3.Text = "Panel 3";
p1.ParentPanel.Tabbed = true;
|
VB |
Imports DevExpress.XtraBars.Docking
Dim p1 As DockPanel = DockManager1.AddPanel(DockingStyle.Left)
p1.Text = "Panel 1"
Dim btn As DevExpress.XtraEditors.SimpleButton btn = New DevExpress.XtraEditors.SimpleButton()
btn.Text = "Print..."
p1.ControlContainer.Controls.Add(btn)
Dim p2 As DockPanel = p1.AddPanel()
p2.Text = "Panel 2"
Dim p3 As DockPanel = p1.ParentPanel.AddPanel()
p3.Text = "Panel 3"
p1.ParentPanel.Tabbed = True
|