I am using Visual C# 2010 Express edition and downloaded packages using nuget command line
C:\Users\sri\Downloads>nuget.exe install oxyplot.wpf
Attempting to resolve dependency 'OxyPlot.Core'.
Installing 'OxyPlot.Core 2013.2.142.1'.
Successfully installed 'OxyPlot.Core 2013.2.142.1'.
Installing 'OxyPlot.Wpf 2013.2.142.1'.
Successfully installed 'OxyPlot.Wpf 2013.2.142.1'.
In the VS2010 project added references to OxyPlot.Wpf.dll and OxyPlot.dll
In the xaml added:
xmlns:oxy="clr-namespace:OxyPlot.Wpf;assembly=OxyPlot.Wpf"
<oxy:Plot Model="{Binding MyPlotModel}"/>
and code-behind added:
using OxyPlot;
//using OxyPlot.Axes;
using OxyPlot.Wpf;
and I get the same error as documented by user mli_codeplex
A complete solution with source code for the example would be very helpful
The 'using OxyPlot.Axes;' gives for the following line:
temp.Axes.Add(new LinearAxis(AxisPosition.Left, -4, 4));
the following error:
'LinearAxis' is an ambiguous reference between 'OxyPlot.Axes.LinearAxis' and 'OxyPlot.Wpf.LinearAxis'
I personally avoid the usage of 'var' keyword, and use fully qualified class name to be clear (to differentiate OxyPlot.* and OxyPlot.WPF.* classes for example)
How to fix the following errors:
Error 1 'OxyPlot.Wpf.LineSeries' does not contain a definition for 'Points' and no extension method 'Points' accepting a first argument of type 'OxyPlot.Wpf.LineSeries' could be found (are you missing a using directive or an assembly reference?)
Error 2 The best overloaded method match for 'System.Collections.ObjectModel.Collection<OxyPlot.Series.Series>.Add(OxyPlot.Series.Series)' has some invalid arguments
Error 3 Argument 1: cannot convert from 'OxyPlot.Wpf.LineSeries' to 'OxyPlot.Series.Series'
Error 4 'LinearAxis' is an ambiguous reference between 'OxyPlot.Axes.LinearAxis' and 'OxyPlot.Wpf.LinearAxis'
Error 5 'LinearAxis' is an ambiguous reference between 'OxyPlot.Axes.LinearAxis' and 'OxyPlot.Wpf.LinearAxis'
Error 6 The name 'MyPlotModel' does not exist in the current context
I was very excited to see the http://www.oxyplot.org/ExampleBrowser/ and it looks very promising, but I can't event get started because the given WPF example doesn't work
↧