The mouse events return the PlotController instead of the plotView or plotModel.
My question is how to access the plotModel from within the mouse event? Could someone tell me the idea behind this change from providing the plotmodel as source to now providing the plotcontroller? How would someone select all series or zoom in based on a mouse event having this plotcontroller as a source?
I would like to add an annotation triggered by an mouse event.
var plott = new PlotModel();
plott.MouseDown += Plott_MouseDown;
public void Plott_MouseDown(object sender, OxyMouseDownEventArgs e)
{
var plot = sender as PlotController;
I NEED TO ACCESS THE PLOTMODEL TO ADD AN ANNOTATION
plot.Annotations.Add(new RectangleAnnotation(){ MinimumX = e.Position.X, MinimumY = e.Position.Y });
}