This example illustrates how to override default colors from an existing color scheme in Windows 10 XAML controls and support system themes (Light, Default). In the current implementation, the background of the RibbonControl header is overridden in Generic and Win8 schemes and has different values in these schemes for the Default and Light system themes.
Colors should be overridden within a separate ResourceDictionary file and used in the Source property of the GlobalColorSchemeOverrider class.
Certain system theme colors must be declared in a separate ResourceDictionary in the color scheme ResourceDictionary's ThemeDictionary collection as follows:
[XAML]<ResourceDictionaryx:Key="Generic"><ResourceDictionary.ThemeDictionaries><ResourceDictionaryx:Key="Default"><SolidColorBrushx:Key="RibbonHeaderBackgroundBrush"Color="#FF164B2F"/> ...</ResourceDictionary><ResourceDictionaryx:Key="Light"><SolidColorBrushx:Key="RibbonHeaderBackgroundBrush"Color="#FF418366"/> ...</ResourceDictionary></ResourceDictionary.ThemeDictionaries> ... </ResourceDictionary>
Note:
1. Our controls have the same appearance in different system themes when the Win8 color scheme is applied. System themes are supported in our controls out of the box only when the Generic color scheme is applied.
2. The Dark system theme is determined as Default and colors in the Generic color scheme for both these themes are the same.
All colors available for overriding are listed in separate files within the installation folder with our controls: <DevExpress Installation Folder>\Components\System\UAP\ColorThemes