Can I add Tap gesture to the Entry

Recerec78FG 61 Reputation points

It's possible to add Tap gesture to the Entry?
This code works for Label but doesn't work for Entry:

var tapEntryRecognizer = new TapGestureRecognizer(); 
tapFocusEntryRecognizer.Tapped += async (s, e) => { Console.WriteLine("tapped"); }; 
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,254 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 63,921 Reputation points Microsoft Vendor


    Welcome to our Microsoft Q&A platform!

    You can use Focused event to achieve it

       myEntry.Focused += async (s, e) => {   
       //add you code  

    Best Regards,

    Leon Lu

    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful