Styling the new Metro theme for RadComboBox

9 posts, 0 answers
  1. Evan
    Evan avatar
    22 posts
    Member since:
    May 2008

    Posted 15 Jul 2011 Link to this post

    Hi all,

    I'm very excited to see the new Metro UI theme released with the latest Telerik controls. I need to change the color from the blue that shows up on selection and cannot find a way to customize the them for Metro UI in my WPF app. I have worked with custom themes in Silverlight without any problem, however, haven't had any luck in WPF following the tutorial at http://www.telerik.com/help/silverlight/common-styling-apperance-themes-custom-theme-project-telerik-approach.html .

    The WPF link is currently broken:
    http://www.telerik.com/help/wpf/common-styling-apperance-themes-custom-theme-project-telerik-approach.html

    I need to replace the blue with an orange on all the Metro themed RadControls I use; specifically, changing the color of the ToggleButtonBackgroundChecked border.

    I found this excerpt from the link http://blogs.telerik.com/blogs/posts/11-06-22/metro-ui-for-radcontrols-for-silverlight-and-wpf.aspx :
        - The theme also utilizes a brand new approach for theming – palettes.  It will allow both easy changing the accented colors as well as overall easy, real-time customization

    Thanks in advance for you help!

    Evan
  2. Dani
    Admin
    Dani avatar
    848 posts

    Posted 18 Jul 2011 Link to this post

    Hi Evan,

    To change the accent color of Metro theme, you do not need a custom theme. You can easily change the it in the following manner:
    MetroColors.PaletteInstance.AccentColor = Colors.Orange;

    More details on the Metro theme will soon be published in the online documentation.

    I hope this helps.

    Kind regards,
    Dani
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. UI for WPF is Visual Studio 2017 Ready
  4. Evan
    Evan avatar
    22 posts
    Member since:
    May 2008

    Posted 18 Jul 2011 Link to this post

    Thanks so much Dani! :) That's excatly what I was looking for.
    Is there a way to change the Metro Accent colors on an individual user control? I've set the the AccentColor in my main window and all my controls reflect the change, however, if I set the accent color in an idvidual control after loading it all the accent colors change thruout the app.

    Is there a way to set the accent color of one individual RadControl and not affect the other RadControls accent colors set in the main window.

    Thanks in advance,

    Evan
  5. Dani
    Admin
    Dani avatar
    848 posts

    Posted 20 Jul 2011 Link to this post

    Hello Evan,

    Currently changing the accent color for a particular control only is not possible. It is used globally throughout all controls.

    If you need a single control to be different than other Metro styled controls , you can customize its Style and change its accent color. But having the control templated as a static resource only for the purpose of changing a single brush is not very convenient, so I would not recommend that approach.

    Best wishes,
    Dani
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  6. Sergiy
    Sergiy avatar
    38 posts
    Member since:
    Jan 2012

    Posted 14 Nov 2012 Link to this post

    I want to change color for some windows, is it already possible or not?
    thanks
  7. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 19 Nov 2012 Link to this post

    Hello Sergiy,

    You can do it by customizing the style of the RadWindow and apply the style only to the windows that you want to modify. You still can't change the accent color of the theme just for specific control.

    All the best,
    Boyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  8. Sergiy
    Sergiy avatar
    38 posts
    Member since:
    Jan 2012

    Posted 19 Nov 2012 Link to this post

    thanks
  9. vaibhav
    vaibhav avatar
    2 posts
    Member since:
    May 2011

    Posted 12 Jun 2013 Link to this post

    Hello Mate,

    We are facing one issue during the our development. We are make dynamic theme using below line. We changed color runtime. But now we upgrade our telerik color (Version 2013 Q1)

    Previously we used below code. It was working fine. But after we upgrade telerik controls we are unable to get changed of the color.

    2011 Q3

    MetroColors.PaletteInstance.AccentColor =Colors.Red

    2013 Q1

    Windows8Palette.Palette.AccentColor=Colors.Red

    Can you please provide your input on the same ?

    Thanks
    Vaibhav kothia
    (Beeline Softwares)

  10. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 17 Jun 2013 Link to this post

    Hi Vaibhav,

    I have tested the provided code and the AccentColor is changed in RadComboBox as expected.  Note that it is applied to the Border of the ComboBox when it is focused and its IsEditable property is enabled.

    Regards,
    Yana
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
UI for WPF is Visual Studio 2017 Ready