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


public UIElement Content { get; set; }
Public Property Content As UIElement

Property Value

Type Description

A UIElement object that represents the content of the LayoutItem.


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.

See Also