I am touch enabling my application and discovered that the default panning and zooming functionality of the XamDataChart is not working as described. Pinching is not zooming at all and the panning ability seems touchy (no pun intended). If I touch and hold then drag the chart moves a tiny bit at first then stops and then shifts a bit again when I stop touching. I have removed all my event handlers to make sure I was not interfering but it made no difference. Is there anything specific I need to do to enable gesture support for the XamDataChart?
Hello Mike,
Thank you for your post. I have been looking into it and I tested the XamDataChart’s Zooming and Panning on Lenovo X1 Carbon with touch screen and everything seems to work ok, so could you please send us the sample, where you have the issues and a video of the results you have, so we could be able to investigate this further for you.
Looking forward for your reply.
Hi Stefan,
I spent some time pulling out all the code I use dynamically build the chart thinking that was where the problem was. As it turns out the problem is that I have the control that creates the graphs inside a ScrollViewer with VerticalOnly PanningMode. I have to turn off panning mode in order for the graph to pan and zoom properly. Do you know of any way around this problem?
I am just checking if you require any assistance or clarification on the matter.
After investigating this, our developers said that this behavior is expected, when using the ScrollViewer in that mode, it intercepts events during tunneling phase. The same behavior is presented if you use a Slider in a ScrollViewer in that mode.
I have logged this with development under ID: 179660 and I have also created a support ticket on your behalf: CAS-141705-X2B3C5 and have linked the development issue to it, so that you can get automatically updated, when a Service Release containing the fix is available for download. You can get the new version from our website’s “My IG”, “My Keys & Downloads” tags: https://ko.infragistics.com/Membership/Default.aspx?panel=Downloads#Downloads
You can also monitor the support ticket’s progress through the “My Support Activity” tag: https://ko.infragistics.com/Membership/MySupport.aspx
The problem still exists. I can either scroll my page or I can pan/zoom the graph but I cannot do both. If the XamDataChart sits in any other control that handles scrolling then the chart touch controls do not function properly. The issue is that the problem occurs with the XamDataChart, the scrollviewer functions properly, so msdn forums suggest contacting Infragistics and you say it is a Microsoft issue and to contact them. I am stuck at this point with a horrible workaround of disabling the scrollviewer when touching the XamDataChart which makes scrolling the page nearly impossible.