DocumentPanel Class
A child panel in a DocumentGroup. The DocumentPanel supports the MDI and Tabbed UIs.
Namespace: DevExpress.Xpf.Docking
Assembly: DevExpress.Xpf.Docking.v22.1.dll
Declaration
Related API Members
The following members return DocumentPanel objects:
Remarks
Create DocumentPanels
In XAML
The following code sample creates the DocumentGroup with two DocumentPanels inside:
<Window ...
xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking">
<dxdo:DockLayoutManager>
<dxdo:LayoutGroup>
<dxdo:DocumentGroup>
<dxdo:DocumentPanel Caption="Document1"/>
<dxdo:DocumentPanel Caption="Document2"/>
</dxdo:DocumentGroup>
</dxdo:LayoutGroup>
</dxdo:DockLayoutManager>
</Window>
In Code
The following code sample creates the DocumentGroup with two DocumentPanels inside:
<Window ...
xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking">
<dxdo:DockLayoutManager x:Name="DockLayoutManager1">
<dxdo:LayoutGroup x:Name="rootgroup">
</dxdo:DockLayoutManager>
</Window>
DocumentGroup documentgroup = new DocumentGroup();
DockLayoutManager1.DockController.Dock(documentgroup, rootgroup, DockType.Fill);
DocumentPanel document1 = DockLayoutManager1.DockController.AddDocumentPanel(documentgroup);
document1.Caption = "Document1";
DocumentPanel document2 = DockLayoutManager1.DockController.AddDocumentPanel(documentgroup);
document2.Caption = "Document2";
DockLayoutManager1.DockController.Dock(document2, documentgroup, DockType.Fill);
Tip
Refer to the DocumentGroup class for more information on how to customize DocumentPanels.
Inheritance
Show 12 items
Object
DispatcherObject
DependencyObject
Visual
UIElement
FrameworkElement
Control
DevExpress.Xpf.Docking.psvFrameworkElement
BaseLayoutItem
ContentItem
LayoutPanel
DocumentPanel
See Also