Xamarin Form Tapped Image

Hello friends. In this article, we will get a picture click feature with Xamarin Forms. There’s actually a very simple way of doing this.

 

First you come to the design screen and here you are first controlling an image. Which picture or position does not matter at all. After you give us the design features you want to control the image, we need to assign a TapGestureRecognizer between the GestureRecognizers properties. With this feature, this function will work when the image is touched once. If you do not build it, Visual Studio will automatically create the functions for you, but the variables that you will get from the outside are as below.

 

 

 

What I’m trying to do here is giving a message to the screen where the photo is touched. So it seems that the photo is touched. You can customize it for your own projects. If you have any questions, please feel free to mail or comment me.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.