Back to Devexpress

DockLayoutManager Class

wpf-devexpress-dot-xpf-dot-docking-cf158da2.md

latest7.1 KB
Original Source

DockLayoutManager Class

Represents a container for dock and layout items.

Namespace : DevExpress.Xpf.Docking

Assembly : DevExpress.Xpf.Docking.v25.2.dll

NuGet Package : DevExpress.Wpf.Docking

Declaration

csharp
[DXLicenseWpfEditors]
public class DockLayoutManager :
    psvControl,
    IWeakEventListener,
    IUIElement,
    ISupportBatchUpdate,
    ILogicalOwner,
    IInputElement
vb
<DXLicenseWpfEditors>
Public Class DockLayoutManager
    Inherits psvControl
    Implements IWeakEventListener,
               IUIElement,
               ISupportBatchUpdate,
               ILogicalOwner,
               IInputElement

The following members return DockLayoutManager objects:

Remarks

Run Demo: Visual Studio Docking

The Dock Layout Manager allows you to create a docking UI and build a control layout. The Dock Layout Manager supports MDI Bar Merging, Save and Restore Layouts, MVVM structure, and much more…

Tip

Refer to the Dock Layout Manager topic for more information on how to implement the docking and/or layout functionalities in your window.

Drag the DevExpress DockLayoutManager from the Visual Studio Toolbox and drop it onto the form to add it to your application.

xaml
<Window x:Class="SimpleDockingApplication.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking">
    <Grid>  
        <dxdo:DockLayoutManager>
            <dxdo:LayoutGroup Caption="LayoutRoot" Orientation="Vertical" >
                <dxdo:LayoutPanel Caption="Panel1"/>
                <dxdo:LayoutPanel Caption="Panel2"/>
            </dxdo:LayoutGroup>
        </dxdo:DockLayoutManager>
    </Grid>
</Window>

The following code snippets (auto-collected from DevExpress Examples) contain references to the DockLayoutManager class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-docklayoutmanager-use-services-that-implement-the-idocumentmanagerservice/CS/DXDocumentUIServiceSample/MainWindow.xaml#L14

xml
<Grid>
    <dxdo:DockLayoutManager>
        <dxdo:LayoutGroup>

wpf-dock-layout-manager-limit-layout-group-customization-at-runtime/CS/DXDockingForLayoutPurposes/MainWindow.xaml#L17

xml
</dx:ThemedWindow.Resources>
<dxd:DockLayoutManager x:Name="rootDockLayoutManager" AllowCustomization="True">
    <dxd:LayoutGroup>

wpf-dock-layout-manager-insert-prism-regions-into-dock-layout-manager-panels/CS/PrismSupportSample/Shell.xaml#L9

xml
Title="Prism support sample" Height="400" Width="700" dxcore:ThemeManager.Theme="Office2016White">
<dxdo:DockLayoutManager x:Name="dockManager" DataContext="{Binding ElementName=list, Path=SelectedItem}">
    <dxdo:LayoutGroup>

wpf-scheduler-use-entity-framework-to-bind-to-data/CS/DXSample/MainWindow.xaml#L21

xml
<dxr:RibbonStatusBarControl DockPanel.Dock="Bottom"/>
<dxdo:DockLayoutManager AutoHideMode="Inline">
    <dxdo:LayoutGroup>

wpf-dock-layout-manager-define-prism-regions-for-dock-layout-manager-elements/CS/PrismOnDXDocking/Shell.xaml#L75

xml
</dxb:BarManager.Bars>
<dxdo:DockLayoutManager x:Name="dockManager" ClosingBehavior="ImmediatelyRemove" AllowCustomization="False">
    <dxdo:LayoutGroup Orientation="Vertical" >

Inheritance

Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control DevExpress.Xpf.Docking.VisualElements.psvControl DockLayoutManager

See Also

DockLayoutManager Members

Create a Simple Layout of Dock Panes

Dock Layout Manager: Get Started

DevExpress.Xpf.Docking Namespace