Skip to main content
A newer version of this page is available. .
All docs
V23.1

WindowsFormsSettings.TrackWindowsAppMode Property

Gets or sets whether your application tracks the Default App Mode setting in Windows OS and displays only light or dark color palettes in a Skin gallery. This setting works only in “WXI”, “Basic”, and “The Bezier” skins.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v23.1.dll

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

Declaration

public static DefaultBoolean TrackWindowsAppMode { get; set; }

Property Value

Type Description
DefaultBoolean

DefaultBoolean.True to track the Default App Mode setting in Windows OS; otherwise, DefaultBoolean.False or DefaultBoolean.Default.

Available values:

Name Description Return Value
True

The value is true.

0

False

The value is false.

1

Default

The value is specified by a global option or a higher-level object.

2

Remarks

Note

The WindowsFormsSettings.TrackWindowsAppMode setting works only in “WXI”, “Basic”, and “The Bezier” skins.

static void Main() {
    Application.EnableVisualStyles();
    Application.SetCompatibleTextRenderingDefault(false);
    WindowsFormsSettings.TrackWindowsAppMode = DevExpress.Utils.DefaultBoolean.True;
    Application.Run(new Form1());
}

Track Windows App Mode - WinForms UI Controls

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