Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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"); };
tapEntry.GestureRecognizers.Add(tapFocusEntryRecognizer);
Hello,
Welcome to our Microsoft Q&A platform!
You can use Focused
event to achieve it
https://learn.microsoft.com/en-us/dotnet/api/xamarin.forms.visualelement.focused?view=xamarin-forms
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.