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

Styling the new Metro theme for RadComboBox

8 Answers 498 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Evan
Top achievements
Rank 1
Evan asked on 15 Jul 2011, 09:16 PM
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

8 Answers, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 18 Jul 2011, 08:40 AM
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!

0
Evan
Top achievements
Rank 1
answered on 18 Jul 2011, 09:58 PM
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
0
Dani
Telerik team
answered on 20 Jul 2011, 09:04 AM
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!

0
Sergiy
Top achievements
Rank 1
answered on 14 Nov 2012, 09:29 AM
I want to change color for some windows, is it already possible or not?
thanks
0
Boyan
Telerik team
answered on 19 Nov 2012, 12:36 PM
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.

0
Sergiy
Top achievements
Rank 1
answered on 19 Nov 2012, 02:09 PM
thanks
0
vaibhav
Top achievements
Rank 1
answered on 12 Jun 2013, 12:04 PM

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)

0
Yana
Telerik team
answered on 17 Jun 2013, 01:23 PM
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.

Tags
ComboBox
Asked by
Evan
Top achievements
Rank 1
Answers by
Dani
Telerik team
Evan
Top achievements
Rank 1
Sergiy
Top achievements
Rank 1
Boyan
Telerik team
vaibhav
Top achievements
Rank 1
Yana
Telerik team
Share this question
or