title: OxyPlot WPF get selected data point
body: <p>I have an Oxyplot chart displaying a lineseries, shown as follows</p>
  <pre><code>                    &lt;oxy:Plot x:Name=&quot;MyChart&quot;
                                Title=&quot;Real&quot;
                                Grid.Row=&quot;1&quot;
                                Grid.Column=&quot;0&quot;&gt;
                          &lt;oxy:Plot.Series&gt;
                              &lt;oxy:LineSeries Title=&quot;MySeries&quot;/&gt;
                          &lt;/oxy:Plot.Series&gt;
                          &lt;oxy:Plot.Axes&gt;
                              &lt;oxy:LinearAxis Position=&quot;Left&quot; TicklineColor=&quot;White&quot; Title= &quot;MySeries&quot;/&gt;
                              &lt;oxy:LinearAxis Position=&quot;Bottom&quot; TicklineColor=&quot;White&quot; /&gt;    
                          &lt;/oxy:Plot.Axes&gt;
                      &lt;/oxy:Plot&gt;
  </code></pre>
  <p>When the user left clicks on the line, the tracker is displayed, showing the selected data point. I would like to have a handler in my code to get the selected data point but am not sure the correct way to do this.</p>
  <p>I have tried adding a handler as follows</p>
  <pre><code>    this.MyChart.ActualModel.MouseDown += OxyMouseDown;
  
      private void OxyMouseDown(object sender, OxyMouseDownEventArgs e)
      {
          LineSeries lineSeries = sender as LineSeries;
          if (lineSeries != null)
          {
              double x = lineSeries.InverseTransform(e.Position).X;
          }
      }
  </code></pre>
  <p>However, although the handler gets called, the sender is never of type LineSeries and therefore I can never transform the point.</p>
  <p>Can someone help please?</p>
  <p>Thanks.</p>