Back to Devexpress

BaseLayoutItem.Appearance Property

wpf-devexpress-dot-xpf-dot-docking-dot-baselayoutitem-10f29b2d.md

latest2.3 KB
Original Source

BaseLayoutItem.Appearance Property

Gets or sets the object that provides appearance settings for the item’s captions. This is a dependency property.

Namespace : DevExpress.Xpf.Docking

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

NuGet Package : DevExpress.Wpf.Docking

Declaration

csharp
public Appearance Appearance { get; set; }
vb
Public Property Appearance As Appearance

Property Value

TypeDescription
Appearance

The appearance settings of the item caption.

|

Remarks

You can use the Appearance property to customize the appearance settings for the item’s caption when it’s in the normal and active (selected) states.

xaml
<Window ...
    xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking">
    <dxdo:DockLayoutManager>
        <dxdo:LayoutGroup x:Name="LayoutRoot" Orientation="Vertical">
            <dxdo:LayoutPanel Caption="Panel1">
                <dxdo:LayoutPanel.Appearance>
                    <dxdo:Appearance>
                        <dxdo:Appearance.Normal>
                            <dxdo:AppearanceObject Background="Green" />
                        </dxdo:Appearance.Normal>
                        <dxdo:Appearance.Active>
                            <dxdo:AppearanceObject Background="Red" />
                        </dxdo:Appearance.Active>
                    </dxdo:Appearance>
                </dxdo:LayoutPanel.Appearance>
                <TextBox />
            </dxdo:LayoutPanel>
            <dxdo:LayoutPanel Caption="Panel2"/>
        </dxdo:LayoutGroup>
    </dxdo:DockLayoutManager>
</Window>

See Also

ItemsAppearance

BaseLayoutItem Class

BaseLayoutItem Members

DevExpress.Xpf.Docking Namespace