c# 哪里可以找到 System.Windows.Controls.dll

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11678794/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-09 18:48:19  来源:igfitidea点击:

c# Where can find System.Windows.Controls.dll

c#visual-studio-2010dll

提问by deleted

I have problem with dll file and have project which need this file System.Windows.Controls.dll for

我的 dll 文件有问题,并且有需要此文件 System.Windows.Controls.dll 的项目

listBox1.ItemsSource

error fix , and add reference with this dll to fix error. Where i can find this dll file? Is there any download link ? Share please ! Thanks !

错误修复,并添加此 dll 的引用以修复错误。我在哪里可以找到这个dll文件?有下载链接吗?请分享!谢谢 !

In "Add Reference" it doesn't exist !

在“添加引用”中它不存在!

Solution: http://download.microsoft.com/download/7/7/6/776875B7-AD81-44D4-AA47-648D1BCB097E/silverlight_sdk.exe

解决方法:http: //download.microsoft.com/download/7/7/6/776875B7-AD81-44D4-AA47-648D1BCB097E/silverlight_sdk.exe

回答by Stefan H

This should be in the PresentationFramework.dll but that control is in the System.Windows.Controls namespace.

这应该在 PresentationFramework.dll 中,但该控件在 System.Windows.Controls 命名空间中。

http://msdn.microsoft.com/en-us/library/system.windows.controls.listbox.aspx

http://msdn.microsoft.com/en-us/library/system.windows.controls.listbox.aspx

You can add it by going to your project, Right clicking on References > Add Reference > .Net Tab > And selecting this DLL

您可以通过转到您的项目来添加它,右键单击 References > Add Reference > .Net Tab > 并选择这个 DLL

回答by Aakash Anuj

Here are the steps:

以下是步骤:

  1. Right click on Referencesin the Solutions Explorer(Solutions explorer is on the right of your IDE)
  2. Select Add Reference
  3. In the window that opens, Select Assemblies > Framework
  4. Check the PresentationFrameworkcomponent box and click ok
  1. 右键单击ReferencesSolutions Explorer(解决方案资源管理器是在你的IDE的右侧)
  2. 选择 Add Reference
  3. 在打开的窗口中,选择 Assemblies > Framework
  4. 选中PresentationFramework组件框,然后单击确定

回答by mosborn1987

I was able to find the dll file by searching my computer for "System.Windows.Controls.dll". I found it under the following file location... "C:\Program Files (x86)\Microsoft SDKs\Silverlight\v3.0\Libraries\Client\System.Windows.Controls.dll"

通过在我的计算机上搜索“System.Windows.Controls.dll”,我能够找到 dll 文件。我在以下文件位置找到它...“C:\Program Files (x86)\Microsoft SDKs\Silverlight\v3.0\Libraries\Client\System.Windows.Controls.dll”

Hope this helps!

希望这可以帮助!