I have a ComboBox with some ComboBoxItems. The selection color is gray. I want to change it. How can I do this? Can I have a different color for the selection on the combobox and on the comboboxitem? (In fact, I want to have a selection color on my comboboxitem selected when my combo is opened and no selection color on my combobox when my combo is closed). I want to have a different Selection Color on the selected ComboBoxItem (I choose first item, I move my mouse on the second item, the selection color is color1. I move the mouse on first item, the selection color is color2)
MMEZIL
So you want to have alternate selection color for each ComboBoxItem, uh?
then you can use the ItemTemplateSelector to do the trick.
Sheva
WPF C# & Other .Net Related Goodness http://shevaspace.spaces.live.com/
Zhou Yong
For all these customizations you should change the controltemplate of the combobox