Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

LayoutPanel.TabBackgroundColor Property

Gets or sets the background color for the LayoutPanel‘s tab header. This is a dependency property.

Namespace: DevExpress.Xpf.Docking

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

NuGet Package: DevExpress.Wpf.Docking

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

Note

The TabBackgroundColor property has no effect if the panel is placed within AutoHideGroup or TabbedGroup.

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

See Also