This question is locked. New answers and comments are not allowed.
Hi,
I'm trying to use your ComboBoxElement control inside a RibbonBar.
My goal is to create a combo box "color picker" where the user would click on the drop down menu and each of the items would have it's own color. Here's what I have tried:
This doesn't work though. The ForeColor property works but not the BackColor. The BackColor is always White.
Can you help?
I'm trying to use your ComboBoxElement control inside a RibbonBar.
My goal is to create a combo box "color picker" where the user would click on the drop down menu and each of the items would have it's own color. Here's what I have tried:
private
void InitBackgroundCombo()
{
// this returns all the color in the Color struct
Color[] systemColors = GetAllColors();
for (int i = 0; i < systemColors.Length; i++)
{
RadComboBoxItem item = new RadComboBoxItem();
item.ForeColor = systemColors[i];
item.Text = systemColors[i].Name;
item.BackColor = systemColors[i];
cbxBackground.Items.Add(item);
}
}
This doesn't work though. The ForeColor property works but not the BackColor. The BackColor is always White.
Can you help?