Skip to main content
All docs
V23.2

WindowsFormsSettings.SetAccentColor(Color) Method

Specifies a custom accent color. The custom accent color overrides the accent color setting in Windows OS (if the TrackWindowsAccentColor option is enabled).

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v23.2.dll

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

Declaration

public static void SetAccentColor(
    Color accentColor
)

Parameters

Name Type Description
accentColor Color

The accent color.

Remarks

Use the WindowsFormsSettings.SetAccentColor and SetAccentColor2 methods to specify custom accent colors.

The following example demonstrates how to reset custom accent colors:

DevExpress.XtraEditors.WindowsFormsSettings.SetAccentColor(System.Drawing.Color.Empty);
DevExpress.XtraEditors.WindowsFormsSettings.SetAccentColor2(System.Drawing.Color.Empty);

Note

“The Bezier” skin supports the second accent color. Other skins do not support the second accent color.

Use the SetAccentColor2 method to specify the second accent color.

Tip

Read the following topic for information on how to display pre-designed Ribbon UI commands that correspond to advanced skin settings: Add and Customize the Ribbon Skin List and Skin Gallery.

Display Advanced Skin Options

See Also