All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

CompatibilitySettings.LegacyDefaultTheme Property

Specifies a legacy default theme which the application should use.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Data.Desktop.v21.1.dll

Declaration

public static LegacyDefaultTheme? LegacyDefaultTheme { get; set; }

Property Value

Type Description
Nullable<LegacyDefaultTheme>

A legacy default theme.

Available values:

Name Description
DeepBlue

The DeepBlue legacy default theme. The theme was default in the v16.1 WPF Controls and prior.

Office2016White

The Office2016White legacy default theme. The theme was default in the v20.1 WPF Controls and prior.

Remarks

...
 partial class App : Application
  {
    protected override void OnStartup(StartupEventArgs e)
      {
        CompatibilitySettings.LegacyDefaultTheme = LegacyDefaultTheme.Office2016White;
        base.OnStartup(e);
      }
  }

Note

When you set the LegacyDefaultTheme to the Office2016White, you should reference the DevExpress.Xpf.Themes.Office2016White.v21.1

See Also