Back to Devexpress

BaseLayoutItem.TabCaptionImage Property

wpf-devexpress-dot-xpf-dot-docking-dot-baselayoutitem-110399cf.md

latest2.4 KB
Original Source

BaseLayoutItem.TabCaptionImage Property

Gets or sets an image displayed within the layout item caption in a tabbed layout. This is a dependency property.

Namespace : DevExpress.Xpf.Docking

Assembly : DevExpress.Xpf.Docking.v25.2.dll

NuGet Package : DevExpress.Wpf.Docking

Declaration

csharp
public ImageSource TabCaptionImage { get; set; }
vb
Public Property TabCaptionImage As ImageSource

Property Value

TypeDescription
ImageSource

An ImageSource object that specifies the image displayed within the layout item caption in a tabbed layout.

|

Remarks

Use the ShowTabCaptionImage property to specify whether the layout item’s caption is displayed.

The following code sample displays tab caption images of the LayoutPanels:

xaml
<dxdo:DockLayoutManager>
    <dxdo:LayoutGroup>
        <dxdo:LayoutPanel Caption="Panel1" TabCaptionImage="{dx:DXImage Image=Add_16x16.png}" />
        <dxdo:LayoutPanel Caption="Panel2" TabCaptionImage="{dx:DXImage 'Images/Actions/Cancel_16x16.png'}" ShowTabCaptionImage="False" />
        <dxdo:LayoutPanel Caption="Panel3" TabCaptionImage="{dx:DXImage 'Images/Arrange/BringForward_16x16.png'}" CaptionImage="{dx:DXImage 'Images/Arrange/BringForward_16x16.png'}"/>
    </dxdo:LayoutGroup>
</dxdo:DockLayoutManager>

You can use the ShowTabCaptionImage property to specify the tab’s caption.

See Also

ShowTabCaptionImage

TabCaption

BaseLayoutItem Class

BaseLayoutItem Members

DevExpress.Xpf.Docking Namespace