无法导入 System.Windows.Controls [英] Cannot Import System.Windows.Controls

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

问题描述

我正在尝试使用 System.Windows.Controls.TextChangedEventArgs,但我无法导入 System.Windows.Controls.当我尝试添加引用时,System.Windows.Controls 不是我可以选择的程序集之一.

I am trying to use System.Windows.Controls.TextChangedEventArgs, but I cannot import System.Windows.Controls. When I try to add a reference, System.Windows.Controls is not one of the assemblies that I can select.

有人知道如何解决这个问题吗?

Does anyone know how to resolve the issue?

推荐答案

接受的答案会告诉您问题,但没有告诉您如何解决它.我只会为以后的访问者添加这个.要解决这个问题,需要添加对PresentationFramework.dll的引用.

The accepted answer tells you the problem but does not tell you how to solve it.I'll just add this for future visitors. To solve this problem, you need to add the reference to PresentationFramework.dll.

1 转到 Solutions Explorer(它位于 IDE 的右侧)> 右键单击​​ References

1 Go to Solutions Explorer (it's on the right of your IDE) > Right click on References

2 选择添加引用

在打开的窗口中,查找Presentation Framework,选中该框并单击确定.就这样.这是向项目添加引用的方法.

in the window that opens, look for Presentation Framework, check the box and click okay. That's all. This is the way to add references to your project.

这篇关于无法导入 System.Windows.Controls的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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