ComboBox Theme

2 posts, 0 answers
  1. Michael Rodriguez
    Michael Rodriguez avatar
    8 posts
    Member since:
    Oct 2009

    Posted 26 Feb 2010 Link to this post

    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.


    Michael Rodriguez
  2. Konstantina
    Konstantina avatar
    2332 posts

    Posted 02 Mar 2010 Link to this post

    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,
    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.
Back to Top