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

How to change the selected highlight color

1 Answer 154 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 16 Oct 2012, 12:41 PM
Hi..
I don't have blend.
How can I change the highlighted (yellow) color when you mouse over a selection?
Why in the demos is it GRAY.  How do I make it gray?
thx in advance

1 Answer, 1 is accepted

Sort by
0
Masha
Telerik team
answered on 19 Oct 2012, 11:43 AM
Hello Jon,

In our demos we are using Windows8 Theme (the new name of Metro Theme) where the default highlight color is gray. Telerik themes can be applied to controls via the usual syntax. For example:
<telerik:RadComboBox telerik:StyleManager.Theme="Metro"/>

If you wish to apply Theme global, not only for specific controls you should set the ApplicationTheme:
StyleManager.ApplicationTheme = new MetroTheme();
InitializeComponent();

Do not forget to add Telerik.Windows.Themes.Metro.dll assembly to your project.

If you do not want to use Blend you can get the same styles from the RadControls installation folder on your machine. There you will find a Themes folder. Drill down to the xaml file that corresponds to the control and its theme and you will have all needed resources for customizing the control manually.

All visual states of RadComboBox are the visual representation of the ButtonChrome control. In the attached project I sent you all needed resources for customizing the ButtonChrome. To change highlighted state of RadComboBox you need to modify following Brushes
<Color x:Key="ControlBackground_MouseOver_Stop0">#FFFFFBDA</Color>
<Color x:Key="ControlBackground_MouseOver_Stop1">#FFFEEBAE</Color>
<Color x:Key="ControlBackground_MouseOver_Stop2">#FFFFD25A</Color>
<Color x:Key="ControlBackground_MouseOver_Stop3">#FFFFFBA3</Color>

Hope this helps.

Greetings,
Maria
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ComboBox
Asked by
Jon
Top achievements
Rank 1
Answers by
Masha
Telerik team
Share this question
or