Back to Devexpress

CompatibilitySettings.LegacyDefaultTheme Property

corelibraries-devexpress-dot-xpf-dot-core-dot-compatibilitysettings.md

latest2.2 KB
Original Source

CompatibilitySettings.LegacyDefaultTheme Property

Specifies a legacy default theme which the application should use.

Namespace : DevExpress.Xpf.Core

Assembly : DevExpress.Data.Desktop.v25.2.dll

NuGet Packages : DevExpress.Data.Desktop, DevExpress.ExpressApp.Win.Design

Declaration

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

Property Value

TypeDescription
Nullable<LegacyDefaultTheme>

A legacy default theme.

|

Available values:

NameDescription
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

csharp
...
 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.v25.2

See Also

CompatibilitySettings Class

CompatibilitySettings Members

DevExpress.Xpf.Core Namespace