Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Multiple Gesture Recognizers in XAML

$
0
0

I am currently making an app that uses XAML. In each page, there is a phone number that I made clickable to launch the phone dialer and such. That was using a gesture recognizer on a label (the Tap Gesture Recognizer) and it works just fine. However, now I'm making the website clickable as well and the gesture recognizer doesn't pick up. Is there a limit to how many tap gesture recognizers you can have? Or what in the world am I doing wrong?

Here is the snippet

   <Label x:Name="PhoneNumber" Text="{Binding PhoneNumber, Mode=OneWay}" Font="Bold, 15" TextColor="#0099CC">
        <Label.GestureRecognizers>
          <TapGestureRecognizer Tapped="OnTapped" />
        </Label.GestureRecognizers>
      </Label>


      <Label x:Name="Website" Text="{Binding Website, Mode=OneWay}">
        <Label.GestureRecognizers>
          <TapGestureRecognizer Tapped="WebsiteTapped" />
        </Label.GestureRecognizers>
      </Label>

Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>