Problems after update (v231 -> v300)

Oystein Bjorke 4 years ago 0
This discussion was imported from CodePlex

WannaInfo wrote at 2014-05-12 13:15:

Hello All,

I originally loaded OxyPlot version 231 for my project.
After experiencing difficulties with the context menu, I saw that a number of fixes should remedy my problems - so I installed version 300.
This broke PlotModel.refresh(), but I saw I should replace this with PlotModel.Invalidate().

1) Now the code which tracked mouse movement (from the example) no longer works. If I'm reading my error messages correctly, the event argument attribute "ChangedButton" does not exist any more. Where can I find the changed code (or the changed code example)?
    PlotModel.MouseMove  += (s, e) =>
        {
            if (e.ChangedButton == OxyMouseButton.Left && !double.IsNaN(startx))
            {

2) The earlier sample used references to OxyPlot, OxyPlot.wpf and OxyPlot.xps. The binaries I downloaded included Oxyplot.dll and OxyPlot.wpf.dll but NOT OxyPlot.xps.dll Does OxyPlot.xps (and the dll) still exist or do I need to rebuild or something?

Thanks a lot

AvanDiepen wrote at 2014-05-12 19:58:

The first question I can't answer but the answer on the second is:
You can use OxyPlot.xps.dll from version OxyPlot-2014.1.240.1.zip, I think that nothing changed in this dll, success.

objo wrote at 2014-05-12 20:45:

1) Yes, the API has been changed - you need to use the MouseDown event to get the button that is clicked.
2) Thanks for the notice. I have included OxyPlot.Xps in the "slimmed down" Release download again. It should be available from next build. But I recommend using the NuGet downloads: https://www.nuget.org/packages/OxyPlot.Wpf

WannaInfo wrote at 2014-05-23 12:52:

Sorry it took so long to reply. Thanks - using nuget repaired lots of things. And the modifications due to API changes were minor.
When These modifications happen, are they listed somewhere? I havn't found a list, but then maybe I'm looking in the wrong places.

And not to forget - this is a very nice graph package. The plots look really good!
Are any 3D Graphs planned in the future - for instance surface diagrams?

objo wrote at 2014-05-24 00:49:

The changes are listed at http://oxyplot.codeplex.com/SourceControl/list/changesets
I have been thinking about including the revision history (hg log) in the packages.

Sorry, support for 3D graphs is not planned. This is strictly a 2D library.
CodePlex