Pre loader

Change behaviour on mouse down on a selected series

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
1

Hello, right now when I click a previously selected series I get the series unselected, I’d like to keep it selected (ignore mousedown). I want to deselect it only when I click on an empty chart surface or another series, how can I accomplish this?

Thanks

Version
latest
  • You must to post comments
0
0

Hi Guglielmo,

At the moment there is no option to allow the SeriesSelectionModifier to keep a series selected if clicked again.

You can override the method DeselectAllBut() to change this behaviour.

Try this:

public class MySeriesSelectionModifier : SeriesSelectionModifier 
{
    protected virtual void DeselectAllBut(IRenderableSeries series)
    {
        if (series.IsSelected) return;

        base.DeselectAllBut(series);
    }
}

Best regards,
Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies