Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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