wpf 如何在我的工具箱下找到图表控件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21935254/
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
How to find chart control under my toolbox?
提问by Trevor_zam
As you can see in my screenshots below, I don't have an option chart under my toolbox. I checked and seem to have the proper references in place. I don't see any option to add the chart control either. Please help. Tnks.
正如您在下面的屏幕截图中看到的那样,我的工具箱下没有选项图表。我检查了一下,似乎有适当的参考资料。我也没有看到任何添加图表控件的选项。请帮忙。恩克斯。
reference
参考


toolbox
工具箱


no option to add chart control
没有添加图表控件的选项


采纳答案by BWHazel
The References under Solution Explorer only refers to what you can use in code. Toolbox items have to be added separately. To do this, right-click inside the Toolbox and select Choose Items.... In the dialog that appears select the tab referring to the type of control (in this case it looks like WPF). Scroll through the list to find the controls you want to add, tick them and click OK. The controls should now be available in the Toolbox. You can add extra tabs/sections to the Toolbox with the Add Tabright-click option.
解决方案资源管理器下的参考仅指您可以在代码中使用的内容。工具箱项目必须单独添加。为此,请在工具箱内右键单击并选择Choose Items...。在出现的对话框中,选择引用控件类型的选项卡(在本例中它看起来像 WPF)。滚动列表以找到要添加的控件,勾选它们并单击确定。这些控件现在应该在工具箱中可用。您可以使用Add Tab右键单击选项向工具箱添加额外的选项卡/部分。
That's a good question - I needed to search for a solution when I first tried to add new controls to the Toolbox!
这是一个很好的问题 - 当我第一次尝试向工具箱添加新控件时,我需要寻找解决方案!
Hope this helps! :)
希望这可以帮助!:)
回答by Sagar Dev Timilsina
I suggest you to use devexpress.. Install devexpress first.. After installing , restart you visual studio,, open a windows form application and Try devexpress..
我建议你使用devexpress..先安装devexpress..安装后,重启你的visual studio,打开一个windows窗体应用程序并尝试devexpress..
Add " New Tab" in your tool box. Right Click Tab and "Choose Items" You can select dll files there. selec all related files and click ok when you are done, just drag and drop chart control on you application, the reference will automatically updated.
在您的工具箱中添加“新标签”。右键单击选项卡和“选择项目”您可以在那里选择 dll 文件。选择所有相关文件并在完成后单击确定,只需在您的应用程序上拖放图表控件,参考将自动更新。
回答by Chagbert
The Chart is not a standard feature control of .NET 3.5 although it can be installed from a separate download. It is only standard in .NET 4.0 or higher. It is Not available at all (no separate download) for .NET 3.0 and below!
Chart 不是 .NET 3.5 的标准功能控件,尽管它可以通过单独的下载安装。它仅在 .NET 4.0 或更高版本中是标准配置。对于 .NET 3.0 及以下版本,它根本不可用(无需单独下载)!
If you can, do change your project to .NET 4.0 to make the Chart control present in the Toolbox and then be able to add it to your forms. I have learnt this the long way...
如果可以,请将您的项目更改为 .NET 4.0,以使 Chart 控件出现在工具箱中,然后能够将其添加到您的表单中。我已经学到了很长的路...

