Can't find System.Windows.Media namespace?

Eric Anastas picture Eric Anastas · Jul 1, 2010 · Viewed 103.4k times · Source

I'm using an object from a 3rd party API that has a property of type System.Windows.Media.ImageSource, yet I can't seem to find the System.Windows.Media namespace anywhere. If I try to add a reference to my project I don't see System.Windows.Media in the list of options. My project is also targeting .Net 3.5.

Is there something else I need to do to be able to access this namespace?

Answer

MegaMilivoje picture MegaMilivoje · Oct 8, 2012

You should add reference to PresentationCore.dll.