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

Custom theme for WPF Application

4 Answers 217 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nancy
Top achievements
Rank 1
Nancy asked on 07 Jul 2014, 08:53 PM
Hi,

I need to create a custom theme (With White,Gray,Blue)  for my WPF Application which has Tabs, Grids, Text Boxes and Toolbars. I would like to have it look  similar to  3rd image of Figure 1 in the link ( I need Toolar, Tab Headers,Grid Headers and Selected Rows Blue in color, with text whitish. The grid rows should have White background with black text.)
http://www.telerik.com/help/wpf/common-styles-appearance-colorizing-metro-theme.html#seeAlsoToggle

Can some one let me know how this can achieved. 

I tried to apply Windows8Theme and change the colors in OnStartup() method as below:
StyleManager.ApplicationTheme = new Windows8Theme();
Windows8Palette.Palette.MainColor = Colors.White;
Windows8Palette.Palette.AccentColor = Colors.Blue;
Windows8Palette.Palette.BasicColor = Colors.Blue;
Windows8Palette.Palette.StrongColor = Colors.White;
Windows8Palette.Palette.MarkerColor = Colors.Blue;
Windows8Palette.Palette.ValidationColor = Colors.Blue;
But that does not loo good on RadGridView as the Grid headers and sort icons done show up.







4 Answers, 1 is accepted

Sort by
0
Nancy
Top achievements
Rank 1
answered on 07 Jul 2014, 09:34 PM
Also, Please let me know if I can apply any third party themes for Telerik Controls.
0
Vanya Pavlova
Telerik team
answered on 08 Jul 2014, 07:11 PM
Hello Nancy,


Thank you for contacting us.

The default Foreground property of GridViewHeaders in Windows8 theme is StrongBrush. Since you have modified this color to white, you are not able to see the header content, because you have white foreground on white background. 
You may override the default Foreground for GridViewHeaderCell, as proposed below:

<Style TargetType="telerik:GridViewHeaderCell">
<Setter Property="Foreground" Value="{telerik:Windows8Resource ResourceKey=MarkerBrush}"/>
</Style>

This will override the default StrongBrush and will return the predefined Blue color for GridViewHeaders.

Regards,
Vanya Pavlova
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Nancy
Top achievements
Rank 1
answered on 09 Jul 2014, 02:02 PM
Hi Vanya,

Please let me know if there are any third party themes available which I can use for my application.
0
Vanya Pavlova
Telerik team
answered on 10 Jul 2014, 07:40 AM
Hello Nancy,


Thank you for getting back to us. 

If you want to use some built-in theme, you should use one of the Telerik theme suite. In case some of our themes do not fit in your needs, you may apply some modifications in order to get the desired look and feel. I believe that Windows8 or our new VisualStudio2013 theme are appropriate for your scenario. 


Regards,
Vanya Pavlova
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
General Discussions
Asked by
Nancy
Top achievements
Rank 1
Answers by
Nancy
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Share this question
or