This is a migrated thread and some comments may be shown as answers.

ComboBox Theme

1 Answer 100 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Michael Rodriguez
Top achievements
Rank 1
Michael Rodriguez asked on 26 Feb 2010, 05:44 PM
I created the template for the RadComboBox and used it to change the default background color to gray to match my textboxes.  The problem is when you drop the list down, the highlight color of each selected item is also gray, so it makes it difficult to tell which record they are selecting in the drop-down.

Which style property controls the background color of the highlighted drop-down item? 

I've attached a screenshot to show what I mean.  In the screenshot Oregon is selected, but you can hardly tell.

Thanks,

Michael Rodriguez

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 02 Mar 2010, 04:47 PM
Hi Michael,

Thank you for contacting us.

To change the colour of the selected item in the ComboBox open your project with Blend Expression. There right-click on one item of the ComboBox and select Edit Template->Edit a Copy. Blend will generate the style of the items. Find the Brush with x:Key="SelectionChrome_Highlight" and change its colour to fit your template. If you are using ItemsSource to generate your items set the ItemContainerStyle. Otherwise, you have to set the newly generated style to each item of your ComboBox.

Attached you will find a sample project in which that is illustrated.

If you have further questions please feel free to contact us again.

All the best,
Konstantina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ComboBox
Asked by
Michael Rodriguez
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or