Trackball symbol capturing clicks

Hello,

We're capturing MouseDown events on our series. This worked well in combination with series tooltips. But we just replaced the tooltips with NearestPoint trackball information, since it's less "sensitive" than tooltips. However, the trackball symbol seems to capture the MouseDown event. So if the user clicks on the trackball symbol (which feels very natural), we don't get the MouseDown event for the series. Is there any way around this?

Best regards,
Marcus

3 Replies

YP Yuvaraj Palanisamy Syncfusion Team December 10, 2020 02:28 PM UTC

Hi Marcus Johansson, 
 
We have analyzed your query and we have achieved your requirement by disable the IsHitTestVisible property of AdorningCanvas in ChartTrackballBehavior. Please find the following code snippet for your reference. 
 
<syncfusion:SfChart Height="500" Width="500" x:Name="chart" Loaded="chart_Loaded"> 
 
 . . . 
 
    <syncfusion:SfChart.Behaviors> 
        <syncfusion:ChartTrackBallBehavior x:Name="trackball"/> 
    </syncfusion:SfChart.Behaviors> 
 
</syncfusion:SfChart> 
 
 
private void chart_Loaded(object sender, RoutedEventArgs e) 
{ 
       trackball.AdorningCanvas.IsHitTestVisible = false; 
} 
 
Also, we have attached the sample for your reference. Please find the sample from the below link. 
 
  
Please let us know if you have any concern. 
 
Regards, 
Yuvaraj. 



MJ Marcus johansson December 11, 2020 09:05 AM UTC

Thanks, that works perfectly!

/Marcus


HM Hemalatha Marikumar Syncfusion Team December 14, 2020 04:15 AM UTC

Hi Marcus Johansson, 
 
Thanks for your update. 
 
Please let us know if you need any further assistance and don’t hesitate to contact us. 
 
Regards,
Hemalatha M. 


Loader.
Up arrow icon