2010-02-21 106 views
16

我在我的WPF应用中收到此错误:WPF:Microsoft_Windows_Themes找不到

找不到类型'Microsoft_Windows_Themes:ScrollChrome'。验证您是否缺少程序集引用,并且所有引用的程序集都已构建。

有什么想法?

回答

31

确保你在你的控制/网页/资源字典/不管的最顶部的标签添加此引用:

...

xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"> 

而在你的项目中添加引用PresentationFramework.Aero