Skip to main content

BaseLayoutItem.Caption Property

Gets or sets the layout item’s caption.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v22.1.dll

NuGet Package: DevExpress.Wpf.Docking


public object Caption { get; set; }

Property Value

Type Description

A string value that specifies the layout item’s caption.


The Caption is displayed in the BaseLayoutItem‘s header.


The Caption is displayed when the item’s ShowCaption inherited property is true.

In Layout Groups

Set the LayoutGroup GroupBorderStyle property to GroupBorderStyle.Group, GroupBorderStyle.GroupBox, or GroupBorderStyle.Tabbed to display the Layout Group’s Caption.

Tabbed Group Captions

When the BaseLayoutItem.IsTabPage is true, the Caption object is duplicated in the tab area. You can set a different tab’s Caption with the BaseLayoutItem.TabCaption property.

The following code sample sets the LayoutPanel‘s Caption and BaseLayoutItem.TabCaption properties.

<Window ...
            <dxdo:TabbedGroup DestroyOnClosingChildren="True" >
                <dxdo:LayoutPanel Caption="Position" />

DXDocking Captions And TabCaptions

Customize Captions

Property Description
CaptionImage Gets or sets the image displayed within the item’s Caption. This is a dependency property.

Gets or sets the format string used to format the layout item’s caption. This is a dependency property.

CaptionLocation and CaptionHorizontalAlignment Specify the item Caption‘s position and horizontal alignment.
CaptionTemplate and CaptionTemplateSelector Specify the Caption appearance.
CaptionWidth Gets or sets the width of the item’s Caption area. This is a dependency property.
See Also