我似乎找不到它,试图以从 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/