I'm using build: 2012_2_0725
All I really want to do is take the Office_Black theme and tweak some of the colors. I've already got a theme project setup according the guidelines but copying ALL the xaml files just to change a few basic colors takes an incredible amount of time and makes me worry about applying Telerik upgrades down the road.
6 Answers, 1 is accepted
I believe that the best approach here would be to create your own theme based on Office Black. You have to copy the files you need and modify it as described in our documentation. Since you want to change something contained in the template of the control you should modify its XAML. It would be much more appropriate to create your own, rather than to predefine the templates of all controls one by one. Currently the resources in our styles are gathered per assembly, so it would not be so difficult to find desired ones.
If I can be of further assistance do not hesitate to contact us!
the Telerik team
An example showing how to change one of the gradient colors used in the RadComboBox would be ideal. For example, ControlBackground_Normal, ControlBackground_Normal_Stop0..ControlBackground_Normal_Stop3. That's not the only control / colors I'm trying to change but it is one I'm having difficult with at the moment.
Thank you for getting back to us!
Please follow these steps when dealing with custom theme in our newest version:
1. Create a new Class LIbrary named MyTheme and add the following piece of code within MyTheme.cs:
2. Add a new Themes folder with the corresponding ResourceDictionaries for RadGridView (located on..\Q2 2012 SP1\ Official\Silverlight\Themes\..\Expression_Dark):
System.Windows.xaml, Telerik.Windows.Controls.xaml, Telerik.Windows.Controls.Input.xaml, Telerik.Windows.Controls.GridView.xaml.
3.Specify the namespace for this theme and the Key for your theme in all ResourceDictionaries as follows:
You may find attached sample application which illustrates this approach.
As per your question about RadComboBox you may check the following thread for further reference.
the Telerik team
..ControlBackground_Active_Stop3 in Telerik.Windows.Controls.xaml does not change the RadComboBox
I got to a point where I was frustrated with all the XAML I had to copy into my project just to change a couple of colors. I wanted to try another approach so I attempted to modify the Office_Black common.xaml, compile that theme and tell my project to use that theme. Unfortuantely it didn't look like it actually compiled the common.xaml. I think this had something to do with build action of the _x.xamls being set to PreprocessedXaml. Is there some trick I'm missing to modifying the common.xaml of a built-in Telerik theme?
Rather unfortunately we are not quite sure what might be causing this behavior. Generally if you change a resource used by in control template it will be handled correspondingly. Would it be possible to isolate the problem in a small runnable project and send it back to us as an attachment to a new support thread?
the Telerik team
Our application has several pages with RadComboBox. All we want to do is change the color of those controls in one place, not across dozens of pages. Using Expression Blend is not an option because many of the controls are created in code.