Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Wpf.Docking

#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