SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

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.

  • 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
    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.