Skip to main content
All docs
V25.1
  • AppearanceObject.Background Property

    Gets or sets the brush used to paint the item’s background. This is a dependency property.

    Namespace: DevExpress.Xpf.Docking

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

    NuGet Package: DevExpress.Wpf.Docking

    Declaration

    public Brush Background { get; set; }

    Property Value

    Type Description
    Brush

    The item’s background.

    Remarks

    The following code sample sets the Panel1 LayoutPanel’s Background to Red when the item is active and to Green when the item is in the normal state:

    <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