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

LayoutPanel.TabBackgroundColor Property

Gets or sets the background color for the LayoutPanel‘s tab header.

Namespace: DevExpress.Xpf.Docking

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

Declaration

public Color TabBackgroundColor { get; set; }

Property Value

Type Description
Color

A Color value that is the background color for the LayoutPanel‘s tab header.

Remarks

The TabBackgroundColor property is used to paint the current LayoutPanel‘s tab header when the LayoutPanel is presented as a tab (e.g., within a DocumentGroup). In some themes, for instance MetropolisLight, a tab’s font color is changed as well (see the figure below).

TabBackgroundColor

Use the LayoutPanel.ActualTabBackgroundColor property to get the LayoutPanel tab header’s actual background color.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TabBackgroundColor 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