Pre loader

SciChart MouseLeftButtonUp Issues

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

1
0

Hi,

I have problem with MouseLeftButtonUp event fire on SciChartSurface. MouseLeftButtonUp event only fire on double click, not on single click. I saw this behavior perfectly working in hit data test demo.

Can someone guide me what I am doing wrong with my code. I have attached my sample code for your reference.

I have added

  <SciChart:SciChartSurface Name="ColumnChart" SeriesSource="{Binding GroupSeries}"
                                          MouseLeftButtonUp="ColumnChart_MouseLeftButtonUp">

Please put a break point “ColumnChart_MouseLeftButtonUp” event on code behind and run the sample. I expect Mouse Left button up on SciChartSurface should fire this event,however event will be fired only on double click.

Let me know if you need anymore details.

Thanks.

Attachments
  • You must to post comments
1
0

Hi,

The reason for the issue is that mouse events are handled by modifiers. In the sample, the only modifier used is the CursorModifier, and it doesn’t handle them. Could I ask you what do you want to achieve by subscribing to mouse events, maybe we will be able to suggest you another way?

Best regards,
Yuriy

  • vinayms
    Thanks for the answer. I am trying to add a custom annotation (user note) on a rendered chart using mouse left button up. User should be able to click anywhere on the chart and should add the user note. I want all the other functionality like zooming, panning and other stuffs as it is. Can you please suggest how I can handle all together. Thanks, Vinay
  • Yuriy Zadereckiy
    Hi, Thank you for the additional info! Please, take a look at our Create Annotation dynamically sample. There the AnnotationCreationModifier is used. Please, notice that the CustomAnnotation which places an image can is used with it. Could you implement the desired behavior in this way? Best regards, Yuriy
  • vinayms
    I am adding y-Axis dynamically (using MVVM approach), so that I am getting this null reference exception. Is this a known issue in SciChart?
  • 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