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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

124277 May 29,2016 08:01 PM May 31,2016 07:21 AM UWP 3
loading
Tags: SfChart
Salvatore Salpietro
Asked On May 29, 2016 08:01 PM

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?

Devi Aruna Maharasi Murugan [Syncfusion]
Replied On May 30, 2016 08:31 AM

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   
 


Salvatore Salpietro
Replied On May 30, 2016 08:35 PM

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?

Devi Aruna Maharasi Murugan [Syncfusion]
Replied On May 31, 2016 07:21 AM

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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;