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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Xamarin form | Wrapping chart with GestureRecognizer

Thread ID:





120825 Oct 20,2015 10:08 AM UTC Oct 21,2015 07:10 AM UTC Xamarin.Forms 1
Tags: SfChart
Eric Chong
Asked On October 20, 2015 10:08 AM UTC

Hi SF team , 

May I know how to wrap Sfchart with GestureRecognizers ? Currently I have Chart wrapped in Stacklayout , and the Stacklayout adds a tap event like this 

tapgesture.Tapped += (sender, e) => {
//do stuff

mystack.GestureRecognizers.Add (tapgesture); 

But when the Chart inside the Stacklayout is clicked , it doesn't fire the event . Any options ? Thanks . 

Magesh Kumar Krishnan [Syncfusion]
Replied On October 21, 2015 07:10 AM UTC

Hi Eric,

Thanks for using Syncfusion products.

The Chart handled the touch action when clicked on the Chart. We request you to add a TapGestureRecognizer to the SfChart. Please refer to the following code example.

Code Example :


TapGestureRecognizer tapGesture = new TapGestureRecognizer();
tapGesture.Tapped += (sender, e) =>
     //your code 

Magesh Kumar K


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon