Nov 1, 2013 at 11:13 AM
Edited Nov 1, 2013 at 11:13 AM
I'm working with the Oxyplot.Metro version, and have a xaml with 3 plots in the same column.
They all have the same X values. The standard metro plots show a tracker upon mouse down.
I have already overwritten the GetNearestPoint function of the LineSeries to allow returning the Y value of a mouse click, not just the nearest point. My goal is to show a tracker on each of the 3 plots, when there is only a mouse click on one of them. But
since the x axes are the same and I know the X value, this should not be so hard.
However, I'm having multiple issues with this.
PlotModel1.MousePressed += (s, e) =>
// Do some stuff to show tracker on Plot2 and Plot3
and a lot more stuff in this MousePressed event, however when I debug, the event is never thrown. Probably due to Metro stuff?
I also tried some things like
Plot1.PointerPressed += (s, e) =>
But again, debugger never reaches this code. The plots are defined in the XAML, and this code is in the constructor of the cs file behind the XAML.
Could somebody help or explain why this won't work?
Thanks in advance!