wpf - System.Windows.Forms.Integration 命名空间在哪里?

标签 wpf winforms interop

我似乎找不到它,试图以从 winforms 表单生成的 wpf 表单进行键盘输入。找到这个:http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/442782b1-00a1-4e2e-9cc6-ae99b6699126/但是当我尝试使用它时,VS2008 提示找不到 System.Windows.Forms.Integration 命名空间。我在添加引用中找不到引用。

我唯一能想到的可能是因为它是一个移植到 VS2008 的 VS2005 项目?

最佳答案

您需要添加对 WindowsFormsIntegration 的引用。如果您在 Visual Studio 中添加引用,它将位于 .Net 选项卡中最后一个可用的 DLL 附近

在我的机器上,它位于

%ProgramFiles%\Reference Assemblies\Microsoft\Framework\v3.0\WindowsFormsIntegration.dll

关于wpf - System.Windows.Forms.Integration 命名空间在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/644789/

相关文章:

wpf - DataTemplate 内控件可见性的 DataTrigger 不起作用

wpf - ScrollViewer 中的用户控件不会在 WPF 中滚动

c# - 使用 LINQ 和高度嵌套的 XML 创建类对象

wpf - F# WPF 脚本,在按钮单击时绘制图形

c# - 如何在C#表格中查找单个文本单词的位置

c# - 命令绑定(bind)实现中的 MVP-VM 与 MVVM

C# Interop 定义工作表数组

wpf - 在不访问基类的情况下序列化派生类

c# - 如何将 Marshal.ReleaseComObject 与 Win32 native 函数一起使用

c++ - glXGetCurrentDisplay() 段错误 (Linux)