BaseLayoutItem.CaptionLocation Property

Gets or sets the position of the item’s Caption. This is a dependency property.

Namespace: DevExpress.Xpf.Docking

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

Declaration

public CaptionLocation CaptionLocation { get; set; }

Property Value

Type Description
CaptionLocation

The position where the Caption is displayed.

Available values:

Name Description
Default

An item’s caption is displayed at the default position, which is different for different item types.

Left

An item’s caption is displayed on the left.

Top

An item’s caption is displayed at the top.

Right

An item’s caption is displayed on the right.

Bottom

An item’s caption is displayed at the bottom.

Remarks

Use the Caption property to specify a Caption.

The following code sample sets the LayoutControlItem‘s CaptionLocation property to Bottom.

<Window ...
  xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking">
  <dxdo:DockLayoutManager>
    <dxdo:LayoutGroup Caption="LayoutRoot">
      <dxdo:LayoutControlItem Caption="Document" CaptionLocation="Bottom">
        <RichTextBox>
          <!-- ... -->
        </RichTextBox>
      </dxdo:LayoutControlItem>
    </dxdo:LayoutGroup>
  </dxdo:DockLayoutManager>
</Window>

DocumentPanel Caption Location

You can use the CaptionLocation property to specify a DocumentPanel‘s header location.

<dx:ThemedWindow 
  ...
  xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
  xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking">
  <dxdo:DockLayoutManager>
    <dxdo:LayoutGroup>
      <dxdo:DocumentGroup CaptionLocation="Bottom">
        <dxdo:DocumentPanel Caption="Document1"/>
        <dxdo:DocumentPanel Caption="Document2"/>
      </dxdo:DocumentGroup>
    </dxdo:LayoutGroup>
  </dxdo:DockLayoutManager>
</dx:ThemedWindow>

See Also