找不到 System.Windows.Media 命名空间? [英] Can't find System.Windows.Media namespace?

查看:49
本文介绍了找不到 System.Windows.Media 命名空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用来自第 3 方 API 的对象,该对象具有 System.Windows.Media.ImageSource 类型的属性,但我似乎找不到 System.Windows.Media 命名空间任何地方.如果我尝试添加对我的项目的引用,我在选项列表中看不到 System.Windows.Media.我的项目也针对 .Net 3.5.

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?

推荐答案

System.Windows.Media.Imaging 命名空间是 PresentationCore.dll 的一部分(如果您使用的是 Visual Studio 2008,那么 WPF应用程序模板将自动添加此引用).请注意,此命名空间不是 WIC 库的直接包装,尽管大部分更常见的用途仍然可用,并且这些名称如何映射到 WIC 版本相对明显.有关此命名空间中的类的更多信息,请查看

The System.Windows.Media.Imaging namespace is part of PresentationCore.dll (if you are using Visual Studio 2008 then the WPF application template will automatically add this reference). Note that this namespace is not a direct wrapping of the WIC library, although a large proportion of the more common uses are still available and it is relatively obvious how these map to the WIC versions. For more information on the classes in this namespace check out

http://msdn2.microsoft.com/en-us/library/system.windows.media.imaging.aspx

这篇关于找不到 System.Windows.Media 命名空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆