Skip to main content

CompositeView.LayoutManager Property

Specifies a Composite View’s Layout Manager.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v25.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public LayoutManager LayoutManager { get; }

Property Value

Type Description
DevExpress.ExpressApp.Layout.LayoutManager

A DevExpress.ExpressApp.Layout.LayoutManager descendant that is the current Composite View’s layout manager.

Remarks

To display View Items according to layout settings defined in a DetailView or DashboardView node of the Application Model, XAF applications use platform-specific Layout Managers. Each Layout Manager uses its own component to display controls in a Composite View:

ASP.NET Core Blazor
BlazorLayoutManager: DxFormLayout
Windows Forms
WinLayoutManager: LayoutControl

Technically, an XAF Layout Manager is a wrapper around platform-specific UI controls, and provides a common API for layout customization. Useful APIs of the LayoutManager descendants include:

  • ItemCreated and LayoutCreated events – to track layout item creation
  • The Container property – to access the underlying layout control instance
  • The CustomizationFormEnabled property – an IModelView.CustomizationFormEnabled alternative to disable runtime layout customizations

For more information about layout managers and their customization in XAF, refer to the following topic: Access Form Layout Control in XAF DetailView and DashboardView.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the LayoutManager property.

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.

See Also