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.v24.2.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
accent |
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 Set
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.