I have a PlotModel
with multiple LineSeries
painted.
What I'm looking for is a trick to select all the LineSeries which the point, detect by the MouseDown
event, belongs to.
I've done this:
this.MouseDown += CheckIfLineSeriesHasBeenSelected;
private void CheckIfLineSeriesHasBeenSelected(object sender, OxyMouseDownEventArgs e)
{
switch (e.ChangedButton)
{
case OxyMouseButton.Left:
var series = (LineSeries) this.GetSeriesFromPoint(e.Position, 10);
series.StrokeThickness = 4;
break;
}
}
But in this way the model changes the thickness of only a small part of the entire LineSeries. Do you have any suggestions? Thanks!