Setting the Background property of RadComboBox no longer changes the background color of the control.
To work this around, you can add a global event handler for the Loaded event of RadComboBox and set the corresponding backgrounds in code.
static MainWindow()
{
EventManager.RegisterClassHandler(typeof(RadComboBox), RadComboBox.LoadedEvent, new RoutedEventHandler(OnComboBoxLoaded));
}
private static void OnComboBoxLoaded(object sender, RoutedEventArgs e)
{
var comboBox = (RadComboBox)sender;
if (!comboBox.IsEditable)
{
if (comboBox.IsEnabled)
{
var buttonChrome = comboBox.FindChildByType<ButtonChrome>();
buttonChrome.Background = Brushes.Purple;
}
else
{
comboBox.Background = Brushes.Purple;
}
}
}