Back to Devexpress

LayoutController Class

wpf-devexpress-dot-xpf-dot-docking-931a960b.md

latest2.1 KB
Original Source

LayoutController Class

Represents the object that provides methods to manage the layout of items.

Namespace : DevExpress.Xpf.Docking

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

NuGet Package : DevExpress.Wpf.Docking

Declaration

csharp
public class LayoutController :
    ILayoutController,
    IActiveItemOwner,
    IDisposable
vb
Public Class LayoutController
    Implements ILayoutController,
               IActiveItemOwner,
               IDisposable

Remarks

Use the DockLayoutManager.LayoutController property to access a LayoutController object, which provides methods to customize the layout of items. These methods allow you to hide, restore, move layout items and access hidden items.

Example

This example shows how to programmatically move a layout item to another position. To move layout items, the LayoutController.Move method is used.

In the example, an item is moved on the left of another item.

View Example

vb
dockLayoutManager1.LayoutController.Move(layoutItemEditor1, layoutItemButton1, MoveType.Left)
csharp
dockLayoutManager1.LayoutController.Move(layoutItemEditor1, layoutItemButton1, MoveType.Left);

Inheritance

Object LayoutController

See Also

LayoutController Members

DevExpress.Xpf.Docking Namespace