WPF:找不到 Microsoft_Windows_Themes [英] WPF: Microsoft_Windows_Themes not found
本文介绍了WPF:找不到 Microsoft_Windows_Themes的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的 WPF 应用程序中出现此错误:
I am getting this error in my WPF app:
未找到类型Microsoft_Windows_Themes:ScrollChrome".确认您没有缺少程序集引用并且所有引用的程序集都已构建.
The type 'Microsoft_Windows_Themes:ScrollChrome' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
有什么想法吗?
推荐答案
确保将此引用添加到控件/页面/资源字典/任何内容的最顶部标记中:
Make sure you add this reference in the top most tag of your control/page/resource dictionary/whatever:
...
xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero">
并在您的项目中添加对 PresentationFramework.Aero
的引用.
And add a reference to PresentationFramework.Aero
in your project.
这篇关于WPF:找不到 Microsoft_Windows_Themes的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文