Back to Devexpress

BaseLayoutItem.CaptionImageStyle Property

wpf-devexpress-dot-xpf-dot-docking-dot-baselayoutitem-1d5ae5df.md

latest2.3 KB
Original Source

BaseLayoutItem.CaptionImageStyle Property

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

Namespace : DevExpress.Xpf.Docking

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

NuGet Package : DevExpress.Wpf.Docking

Declaration

csharp
public Style CaptionImageStyle { get; set; }
vb
Public Property CaptionImageStyle As Style

Property Value

TypeDescription
Style

The style of the caption image.

|

Remarks

xaml
<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>

See Also

CaptionImage

BaseLayoutItem Class

BaseLayoutItem Members

DevExpress.Xpf.Docking Namespace