wpf-devexpress-dot-xpf-dot-docking-dot-baselayoutitem-b3c7c6d6.md
Gets or sets the position of the item’s Caption. This is a dependency property.
Namespace : DevExpress.Xpf.Docking
Assembly : DevExpress.Xpf.Docking.v25.2.dll
NuGet Package : DevExpress.Wpf.Docking
public CaptionLocation CaptionLocation { get; set; }
Public Property CaptionLocation As CaptionLocation
| 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.
|
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>
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