I have written the following code which for some reason wants me to override the BaseBlueColor even though ThemeManager.CurrentTheme is null. I am not sure why the BaseBlueColor is the one I have to manipulate however once I set that value in the code below the Actipro Controls properly show their colors. First question is why do we need to use that value? Second question, the native controls always use the native Windows Settings which I do not want to have anything to do with. I have tried setting ThemeManager.AreNativeThemesEnabled to both true and false with no luck. How can I get the native controls to use my custom color?
ThemeManager.BeginUpdate();
try
{
ThemeManager.RegisterThemeDefinition(new ThemeDefinition("Custom")
{
BaseColorBlue = (System.Windows.Media.Color)System.Windows.Media.ColorConverter.ConvertFromString(color700String)
});
ThemeManager.AreNativeThemesEnabled = true;
ThemeManager.CurrentTheme = "Custom";
}
finally
{
ThemeManager.EndUpdate();
}
If I use the following code the Menu Bar works as expected however the highlight in TextBox does not use my color nor does the ComboBox use my color:
ThemeManager.RegisterThemeDefinition(new ThemeDefinition("Custom")
{
ColorPaletteKind = ColorPaletteKind.Office,
BaseColorBlue = (System.Windows.Media.Color)System.Windows.Media.ColorConverter.ConvertFromString(color700String)
});
[Modified 3 years ago]