Skip to main content
A newer version of this page is available. .

Appearance.Active Property

Gets or sets appearance properties that are applied to the item when it is active. This is a dependency property.

Namespace: DevExpress.Xpf.Docking

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

Declaration

public AppearanceObject Active { get; set; }

Property Value

Type Description
AppearanceObject

Appearance properties applied to the panel.

Remarks

The following code sample sets the LayoutPanel’s Background to Red when the item is active and to Green when the item is inactive:

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Active property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also