How to change the default theme in telerik wpf

2k Views Asked by At

My project is used telerik wpf, I want to change default theme,

I read http://www.telerik.com/help/wpf/radwindow-how-to-change-the-default-theme.html already but it didn't help me resolve the issue because this document guide how to change theme for RadWindow. it isn't for all windows and pages. In a project, we have many pages and windows, so "default theme" means the theme is applied for all pages and window. now, I must change theme for each radcontrol in page or window by the way using like this: <telerik:RadGridView telerik:StyleManager.Theme="Vista" ....

anyone can help me? thanks

2

There are 2 best solutions below

0
John Nguyen On BEST ANSWER

I find down solution: Declare the following code before the InitializeComponent() at MainWindow.xaml.cs

StyleManager.ApplicationTheme = new VistaTheme();
0
Ghislain Zabatio On

To Improve the Answer of a link ! John Nguyen. We must set the IsWindowsThemeEnabled property to false if you use the RadRibbonWindow as main windows of your application.