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.
- vinayms asked 10 years ago
- You must login to post comments
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
- Yuriy Zadereckiy answered 10 years ago
-
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
-
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
-
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 login to post comments
Please login first to submit.