Example for touch in Win7?

Jun 19, 2014 at 6:18 PM
Hi, all.

I've just obtained the OxyPlot.WPF package, which I'm trying to use in VS2010. I created the trivial application (just a PlotView in a Grid in a Window, with a bit of view-model code to load up a PlotModel, a couple of axes and a series). It displays quite nicely.

However, when I touch within the window (I have a touch-monitor), it immediate crashes with a NullReference Exception in PlotView.OnManipulationStarted. I'm assuming that I haven't wired up the manipulation features correctly, but I cannot find a demo for this. The "Code" button in the browser examples only show the function that builds the PlotModel. Where can I find a FULL example of a touch-enabled OxyPlot application?

Many thanks!

Jim Hudson
Oct 1, 2014 at 11:11 AM
Hi Jim!
I have the same problem. Have you found a solution? Thank you in advance!
Oct 1, 2014 at 12:02 PM
I contacted ABT Software support, and they directed me to an example program that I could download from their site that used the touch pan/zoom modifiers. However, those didn't work exactly the way I needed, so instead I just hooked up the WPF ManipulationCompleted and ManipulationDelta event handlers for the SciChartSurface, and set the X and Y axis VisibleRange properties in the event handlers.