找不到System.Windows.Media namepspace? [英] Can't find System.Windows.Media namepspace?

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

问题描述

我使用的对象,从第三方的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

<一个href="http://msdn2.microsoft.com/en-us/library/system.windows.media.imaging.aspx">http://msdn2.microsoft.com/en-us/library/system.windows.media.imaging.aspx

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

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