如何更改在 MFC 中使用的 WPF 控件中的 DevExpress GridControl 默认主题
How to change DevExpress GridControl default theme in WPF control which is used in MFC
我在 MFC 应用程序中使用 WPF 控件(使用 DevExpress GridControl)。
我需要知道一种更改其默认蓝色主题的方法。
我试过:
DevExpress.Xpf.Core.ThemeManager.ApplicationThemeName = "Office2007Black";
只要我在 WPF 应用程序中使用此控件,它就可以正常工作。
但是当我将该控件放入 MFC 应用程序时,它停止工作。
得到它与这条神奇的线一起工作:
ThemeManager.SetThemeName(this, “Office2007Blue”);
我在 MFC 应用程序中使用 WPF 控件(使用 DevExpress GridControl)。 我需要知道一种更改其默认蓝色主题的方法。
我试过:
DevExpress.Xpf.Core.ThemeManager.ApplicationThemeName = "Office2007Black";
只要我在 WPF 应用程序中使用此控件,它就可以正常工作。 但是当我将该控件放入 MFC 应用程序时,它停止工作。
得到它与这条神奇的线一起工作:
ThemeManager.SetThemeName(this, “Office2007Blue”);