Back to Devexpress

WindowsFormsSettings.BackgroundSkinningMode Property

windowsforms-devexpress-dot-xtraeditors-dot-windowsformssettings-c0a8530a.md

latest7.7 KB
Original Source

WindowsFormsSettings.BackgroundSkinningMode Property

Gets or sets whether colors assigned to AppearanceObject.BackColor or AppearanceObject.BorderColor properties can blend with skin element bitmaps.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
public static BackgroundSkinningMode BackgroundSkinningMode { get; set; }
vb
Public Shared Property BackgroundSkinningMode As BackgroundSkinningMode

Property Value

TypeDescription
DevExpress.XtraEditors.BackgroundSkinningMode

A DevExpress.XtraEditors.BackgroundSkinningMode object enumerator value that specifies what appearance colors can blend with skin element bitmaps.

|

Remarks

In version 18.2 and higher, you can change the background and/or border colors of the following elements without the necessity to disable skins — your custom colors will be used to colorize skin elements.

ControlUI ElementAppearance PropertyAppearance Setting
Data GridColumn HeaderAppearanceHeaderBackColor
Data GridBand HeaderAppearanceHeaderBackColor
Data GridLayout View Card CaptionAppearance.CardCaptionBorderColor
Data GridLayout View Focused Card CaptionAppearance.FocusedCardCaptionBorderColor
Data GridLayout View Selected Card CaptionAppearance.SelectedCardCaptionBorderColor
Data GridLayout View Hide Selection Card CaptionAppearance.HideSelectionCardCaptionBorderColor
TreeListColumn HeaderAppearanceHeaderBackColor
TreeListBand HeaderAppearanceHeaderBackColor
Pivot GridField HeaderAppearance.HeaderBackColor
RibbonBar Button Items displayed within Page HeadersBarButtonItem.ItemAppearance.NormalBackColor
Dock ManagerDock PanelAppearanceBorderColor
Application UI ManagerTabbed View Document HeaderAppearance.HeaderBackColor
Application UI ManagerWidget View Document CaptionAppearanceCaptionBackColor
Application UI ManagerWidget View Document Active CaptionAppearanceActiveCaptionBackColor
Application UI ManagerNative MDI View Document CaptionAppearanceCaptionBackColor
Application UI ManagerNative MDI View Document Active CaptionAppearanceActiveCaptionBackColor
Tab PaneTab Navigation Page CaptionTabNavigationPage.Properties.AppearanceCaptionBackColor
Navigation PaneNavigation Page CaptionNavigationPage.Properties.AppearanceCaptionBackColor
Group ControlCaptionAppearanceCaptionBorderColor
Tab ControlTab Page HeaderXtraTabPage.Appearance.HeaderBackColor
Layout ControlGroupLayoutControlGroup.AppearanceGroupBorderColor
Layout ControlTab Page HeaderLayoutControlGroup.AppearanceTabPage.HeaderBackColor
SimpleButtonButtonSimpleButton.AppearanceBackColor
TextEdit-based Controls (WXI Skin only)Edit BoxTextEdit.Properties.AppearanceBackColor
MemoEditEdit BoxMemoEdit.Properties.AppearanceBackColor

In versions prior to 18.2, you were not able to change the background and/or border colors for these elements in skin paint themes. You had to disable element skins to highlight these elements with a custom color.

csharp
//v18.2 and newer
simpleButton1.Appearance.BackColor = System.Drawing.Color.DarkOrange;
//v18.1 and older
simpleButton1.LookAndFeel.UseDefaultLookAndFeel = false;
simpleButton1.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Flat;
simpleButton1.Appearance.BackColor = Color.DarkOrange;
vb
'v18.2 and newer
simpleButton1.Appearance.BackColor = System.Drawing.Color.DarkOrange
'v18.1 and older
simpleButton1.LookAndFeel.UseDefaultLookAndFeel = False
simpleButton1.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Flat
simpleButton1.Appearance.BackColor = Color.DarkOrange

The BackgroundSkinningMode property allows you to restore the behavior seen in versions 18.1 and earlier. The following options are available:

  • AllColors - custom Appearance colors affect UI elements in all paint themes.

  • Legacy - custom Appearance colors affect only those UI elements that do not use skins (the behavior seen in v18.1 and earlier).

  • Default - equal to Legacy if the WindowsFormsSettings.DefaultSettingsCompatibilityMode property is set to v18_1 or less; otherwise, equal to AllColors.

  • DXColors - UI elements blend only DX Skin Colors with skin element bitmaps. Other custom colors are not in effect.

See Also

Application Appearance and Skin Colors

WindowsFormsSettings Class

WindowsFormsSettings Members

DevExpress.XtraEditors Namespace