2010-02-21 131 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