No WinForms Plot Control!

Oystein Bjorke 4 years ago • updated by HugaHaga 1 year ago 1
This discussion was imported from CodePlex

jacakk wrote at 2013-01-10 20:54:

I'm using OxyPlot.WindowsForms and VS 2010 Ultimate.

I'm trying to add Control Plot but in Controls Menu there is no such thing like "Plot"!

Help!


objo wrote at 2013-01-12 17:58:

The following is based on VS2012, but I think VS2010 is similar
  • Right click in the toolbox
  • Select "Choose items..."
  • Press "Browse..." under ".NET framework components
  • Select the OxyPlot.WindowsForms.dll assembly (note that there are versions for both .NET 4.0 and .NET 4.5)
  • The "Plot" control should appear under "OxyPlot.WindowsForms Components" in the ToolBox

jfraschilla wrote at 2013-08-18 19:37:

I am a new user to OxyPlot and tried to create an WinForms example in VS2012 Professional. I followed the steps to add OxyPlot to the VS designer toolbox but I get the following error when I add OxyPlot.WindowForms.dll:

There are no components in 'xxx\OxyPlot.WindowsForms.dll' that can be placed on the toolbox.

John

morty77 wrote at 2013-09-27 13:25:

jfraschilla wrote:
I am a new user to OxyPlot and tried to create an WinForms example in VS2012 Professional. I followed the steps to add OxyPlot to the VS designer toolbox but I get the following error when I add OxyPlot.WindowForms.dll:

There are no components in 'xxx\OxyPlot.WindowsForms.dll' that can be placed on the toolbox.

John
I created a WPF project in VS 2012 Express, and I can't see the OxyPlot in the toolbox either (installed through NuGet). I tried to add the OxyPlot.Wpf.dll like you did for the OxyPlot.WindowsForms.dll and I get the same error message (although for Wpf):

"There are no components in '...\OxyPlot.Wpf.dll' that can be placed on the toolbox."

Have you found a solution to your problem?
Thanks.

Gimly wrote at 2013-09-27 13:56:

morty77> Don't think there is a toolbox component for OxyPlot, you should simply add the xmlns for it in your Control, like so:
xmlns:oxy="http://oxyplot.codeplex.com"
And then you can simply put the plot wherever you want in your WPF control.
<oxy:Plot>
</oxy:Plot>
If you're new to WPF, you'll see quickly that the designer is not really the way to create your interface, you shouldn't use it really and use the XAML editor instead.
CodePlex
+2

I had the same problem, and solved it by making sure the OxyPlot.dll is in the same folder as OxyPlot.WindowsForms.dll (I copied it there).

See also: http://discussion.oxyplot.org/topics/698-winform-designer-problem/