1

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

4

2 回答 2

2

我找到了解决方案:在 MainWindow.xaml.cs 的 InitializeComponent() 之前声明以下代码

StyleManager.ApplicationTheme = new VistaTheme();
于 2014-06-18T09:59:26.543 回答
0

改善链接的答案!约翰·阮。如果您使用 RadRibbonWindow 作为应用程序的主窗口,我们必须将 IsWindowsThemeEnabled 属性设置为 false。

于 2017-03-09T09:13:08.677 回答