Search code examples
wpfteleriktelerik-window

How to change the default theme in telerik wpf


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


Solution

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

    StyleManager.ApplicationTheme = new VistaTheme();