我在 WPF 应用程序中收到此错误:
找不到类型“Microsoft_Windows_Themes:ScrollChrome”。验证您没有缺少程序集引用,并且所有引用的程序集均已构建。
有什么想法吗?
最佳答案
确保将此引用添加到控件/页面/资源字典/其他内容的最顶部标签中:
...
xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero">
并在项目中添加对 PresentationFramework.Aero
的引用。
关于WPF:找不到 Microsoft_Windows_Themes,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2304779/