Hi,
First of all, thank you very much for this great chart library.
I'm having a problem while attempting to change the color of the selected marker in a line series. Is this possible at all, or it is a not-supported feature?
I've tried to modify the "LineSeries and PlotModel MouseDown event" example, simply adding the following lines
Last thing, why do we have to change the color at model level? Isn't more flexible doing it a series level? That is we could also have more control on the stroke of the selected item.
Thanks,
Fabio
First of all, thank you very much for this great chart library.
I'm having a problem while attempting to change the color of the selected marker in a line series. Is this possible at all, or it is a not-supported feature?
I've tried to modify the "LineSeries and PlotModel MouseDown event" example, simply adding the following lines
model.SelectionColor = OxyColors.Red;
s1.SelectionMode = SelectionMode.Single;
s1.ItemsSource = s1.Points;
and inside the MouseDown event handler // Check if we are near a point
if ((nearestPoint - e.Position).Length < 10)
{
// Start editing this point
indexOfPointToMove = indexOfNearestPoint;
s1.SelectItem(indexOfPointToMove);
}
This doesn't seem to work. Is there something that I'm missing?Last thing, why do we have to change the color at model level? Isn't more flexible doing it a series level? That is we could also have more control on the stroke of the selected item.
Thanks,
Fabio