We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Unable to scroll a scrollviewer when swipe gesture starts on SFChart control

I added an SFChart inside a ScrollViewer control along with other items like stack panel, grids etc.  on Windows Mobile device running Windows 10 UWP  when the scrolling (swipe) gesture starts on the SFChart, I cannot scroll the contents of the page, but when it starts outside (any other windows control, I'm able to scroll.   

Is there a way to fix this?

3 Replies

DA Devi Aruna Maharasi Murugan Syncfusion Team May 30, 2016 12:31 PM UTC

Hi Salvatore,  
  
Thanks for contacting Syncfusion Support.  
  
By setting IsHitTestVisible property as false, we can scroll the chart in the scroll viewer.  
    
[XAML]    
    
<syncfusion:SfChart x:Name="chart" IsHitTestVisible="False">    
    
    
    
</syncfusion:SfChart>   
     
  
We have also prepared a sample for this requirement. Please find the sample from the below link.  
  
  
By making this IsHitTestVisible property as false, it suppresses the interactive behaviors of the chart. 
  
Regards, 
Devi M   
 



SJ sjs May 31, 2016 12:35 AM UTC

Thanks very much for the reply. 

Your solution worked perfectly, but I also found another solution using ManipulationMode="System"

What is the difference between the two?  Does it matter which one to use?


DA Devi Aruna Maharasi Murugan Syncfusion Team May 31, 2016 11:21 AM UTC

Hi Salvatore,

Thanks for your update.

We can set ManipulationMode as System in the chart to resolve the scroll problem in the scroll viewer. While setting the ManipulationMode as System, all the manipulation events are handled. But when we disable IsHitTestVisible, the hit test result of the element will not be returned.

Regards,
Devi M.

Loader.
Up arrow icon