How to change the selected highlight color

2 posts, 0 answers
  1. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 16 Oct 2012 Link to this post

    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

  2. Masha
    Admin
    Masha avatar
    248 posts
    Member since:
    Apr 2013

    Posted 19 Oct 2012 Link to this post

    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.

  3. Download a free trial of UI for WPF
Back to Top