How would I customize the boxes in a AutoCompleteBox to be different colors? A simple idea would be to have a list of objects with a text property and color property. The boxes could be a certain color based off the color property.
Thanks for the link. I was hoping to use an object class to be able to add the text blocks. How would I add the text blocks as a custom class. The only way I see to add blocks is with RadAutoCompleteBox1.Text = "foo;bar;"
Alternatively, you can just store your item's text and desired color in a simple dictionary, and use the formatting event to pull the value from the dictionary and color the box as specified:
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
items.Add("text1", Color.Red);
items.Add("text2", Color.Green);
items.Add("text3", Color.Blue);
items.Add("text4", Color.Yellow);
}
Dictionary<string, Color> items = new Dictionary<string, Color>();