Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF: Microsoft_Windows_Themes not found

Tags:

I am getting this error in my WPF app:

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.

Any idea?

like image 239
Warpin Avatar asked Feb 21 '10 04:02

Warpin


1 Answers

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"> 

And add a reference to PresentationFramework.Aero in your project.

like image 126
Noel Avatar answered Sep 21 '22 11:09

Noel