Skip to main content
All docs
V24.2

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.CaptionImageStyle Property

Gets or sets the caption image style. This is a dependency property.

Namespace: DevExpress.Xpf.Docking

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

NuGet Package: DevExpress.Wpf.Docking

#Declaration

public Style CaptionImageStyle { get; set; }

#Property Value

Type Description
Style

The style of the caption image.

#Remarks

<Window ...
        xmlns:dxdove="http://schemas.devexpress.com/winfx/2008/xaml/docking/visualelements"
        xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
        xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking">
    <StackPanel>
        <dxdo:DockLayoutManager>
            <dxdo:LayoutGroup Caption="LayoutRoot">
                <dxdo:LayoutPanel Caption="Panel1" CaptionImage="{dx:SvgImageSource Uri='pack://application:,,,evExpress.Images.v20.2;component/SvgImages/Outlook Inspired/New.svg'}">
                    <dxdo:LayoutPanel.CaptionImageStyle>
                        <Style TargetType="dxdove:CaptionImage">
                            <Setter Property="Width" Value="16"/>
                            <Setter Property="Height" Value="16"/>
                            <Setter Property="Stretch" Value="Fill"/>
                        </Style>
                    </dxdo:LayoutPanel.CaptionImageStyle>
                </dxdo:LayoutPanel>
            </dxdo:LayoutGroup>
        </dxdo:DockLayoutManager>
    </StackPanel>
</Window>

DockLayoutManager - LayoutGroup - CaptionImageStyle property

See Also