No WinForms Plot Control!

Jan 10, 2013 at 7:54 PM

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!

Coordinator
Jan 12, 2013 at 4:58 PM
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
Aug 18, 2013 at 5:37 PM
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
Sep 27, 2013 at 11:25 AM
Edited Sep 27, 2013 at 11:26 AM
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.
Sep 27, 2013 at 11:56 AM
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.