Problems with Legend Box
Posted: Thu Nov 16, 2017 8:53 am
Hello,
I have some problems with the legend box. Maybe you can help me with my issues .
I have some data series and a legend box. The user should be able, to change the color of a series. So I open a color picker dialog when the user clicks on the series title in the legend box.
Because legendBox.HighlightSeriesOnTitle = true; the series is highlighted at this moment, that's what I want. So the user can see which series color will be changed. But when I close the color picker dialog, the series is still highlighted. I don't find a way to remove the highlighting other than moving the mouse over the legend box series title again. Even moving the mouse in the view and over the series does not remove the highlighting.
How can I remove the highlighting?
I tried series.SetHighlight() and series.RemoveHighlight(), but that caused other problems. For me it looks like something internally is missing while moving away from the legend box by opening the color picker dialog instead of leaving the legend box by mouse movement. But maybe I'm simply missing something.
Next thing is, the color of the series title in the legend box is not updated after I have changed it.
Is there something I can do to update the legend box, something like refresh?
Another thing, not so important because there is a simple workaround:
When I click with the right mouse button on a series title in the legend box:
legendBox.SeriesTitleMouseDown Event: MouseEventArguments.RightButton is MouseButtonState.Pressed; // That's what I expect
legendBox.SeriesTitleMouseClick Event: MouseEventArguments.RightButton is MouseButtonState.Released; // Shouldn't this be also MouseButtonState.Pressed?
Any help is highly appreciated, I tried to solve this issue for some time now in vain.
Thank's a lot and have a nice day.
I have some problems with the legend box. Maybe you can help me with my issues .
I have some data series and a legend box. The user should be able, to change the color of a series. So I open a color picker dialog when the user clicks on the series title in the legend box.
Because legendBox.HighlightSeriesOnTitle = true; the series is highlighted at this moment, that's what I want. So the user can see which series color will be changed. But when I close the color picker dialog, the series is still highlighted. I don't find a way to remove the highlighting other than moving the mouse over the legend box series title again. Even moving the mouse in the view and over the series does not remove the highlighting.
How can I remove the highlighting?
I tried series.SetHighlight() and series.RemoveHighlight(), but that caused other problems. For me it looks like something internally is missing while moving away from the legend box by opening the color picker dialog instead of leaving the legend box by mouse movement. But maybe I'm simply missing something.
Next thing is, the color of the series title in the legend box is not updated after I have changed it.
Is there something I can do to update the legend box, something like refresh?
Another thing, not so important because there is a simple workaround:
When I click with the right mouse button on a series title in the legend box:
legendBox.SeriesTitleMouseDown Event: MouseEventArguments.RightButton is MouseButtonState.Pressed; // That's what I expect
legendBox.SeriesTitleMouseClick Event: MouseEventArguments.RightButton is MouseButtonState.Released; // Shouldn't this be also MouseButtonState.Pressed?
Any help is highly appreciated, I tried to solve this issue for some time now in vain.
Thank's a lot and have a nice day.