Skip to main content
All docs
V24.2

PredefinedThemePalettes.EnhancedContrast Property

The Enhanced Contrast predefined theme palette.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public static PredefinedThemePalette EnhancedContrast { get; }

Property Value

Type Description
PredefinedThemePalette

The Enhanced Contrast predefined theme palette.

Remarks

The Enhanced Contrast predefined palette uses color combinations that help people with vision impairment distinguish text, borders, selection states, and other visual elements.

Contrast Predefined Palette

You can use the palette with the following application themes:

Apply the Palette In Code

  1. Reference the Mono.cecil NuGet package in your project.
  2. Call the Theme.RegisterPredefinedPaletteThemes method to enable predefined palettes.
  3. Set the ApplicationThemeHelper.ApplicationThemeName property to the predefined palette name and base theme name combination.

    Theme.RegisterPredefinedPaletteThemes();
    ApplicationThemeHelper.ApplicationThemeName = PredefinedThemePalettes.EnhancedContrast.Name + Theme.Office2019White.Name;
    
See Also