Skip to main content
A newer version of this page is available. .

LayoutItem.Content Property

Specifies the content of the LayoutItem. This is a dependency property.

Namespace: DevExpress.Xpf.LayoutControl

Assembly: DevExpress.Xpf.LayoutControl.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.LayoutControl, DevExpress.Wpf.Layout

Declaration

public UIElement Content { get; set; }

Property Value

Type Description
UIElement

A UIElement object that represents the content of the LayoutItem.

Remarks

A layout item consists of two parts: label and content regions. The label region is typically designed to display a text label. You can use the LayoutItem.Label property to specify a label. To control the display of the label, use the LayoutItem.LabelTemplate property.

The Content property allows you to specify a content for the LayoutItem. When declaring a LayoutItem object in XAML, any object defined between the LayoutItem start and end tags is used to initialize the LayoutItem.Content property.

The position of the label relative to the content is specified by the LayoutItem.LabelPosition property.

By default, the left edges of layout items’ content regions are aligned throughout the LayoutGroups. See Aligning contents of LayoutItems to learn more.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Content 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