Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

The tap gesture recognizer not work in the span of a label?

lescperlescper Member ✭✭✭✭

please check the image.

the text underlined has a tapgetsture recognizer. but when I tap it it will not work.

only if I tap the white space around it then it will work.

and some of it is not work some of it works well.

why is it?



  • JarvanJarvan Member, Xamarin Team Xamurai

    I created a basic demo to test the feature and it works well. How did you add the function, could you posted the related code?

    <Label x:Name="label">
                <Span Text="span1:testing for gesture "/>
                <Span x:Name="span2" Text="span2:testing for gesture" TextColor="Red">
                        <TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped"/>
  • lescperlescper Member ✭✭✭✭

    I added it as yours but in the cs.

    and some of them works fine some of them not work.

  • JohnHJohnH GBMember ✭✭✭✭✭

    @lescper Post the code that fails so we can see what you are doing.

  • lescperlescper Member ✭✭✭✭

    Thankyou @JohnH. there is many codes. I would check it again first.

  • JarvanJarvan Member, Xamarin Team Xamurai

    If you are facing some issues while implementing, please post the particular error with the corresponding codes here.

Sign In or Register to comment.