Gesture Recognizers can be used to detect user interaction with many elements of a Xamarin.Forms Application. The Tap Gesture is used for tap detection and is implemented with the TapGestureRecognizer class.
After reading this article, you will learn how to add Tap Gesture in Xamarin Forms Application for Android and Universal Windows Platform with XAML and Visual C# in cross platform application development, using Visual Studio 2017RC.
The important tools which are required to develop UWP are given below.
- Windows 10 (Recommended).
- Visual Studio 2017 RC Community/Enterprise/Professional Edition (It is a Free trial software available online).
- Using Visual studio 2017 Installer, enable the feature of Mobile development with .NET.
Now, we can discuss step by step app development.
Step 1
Open Visual Studio 2017 RC -> Start -> New Project-> Select Cross-Platform (under Visual C#->Cross Platform App-> Give the suitable name for your app (XamFormGesTap) ->OK.

Step 2
Select the Cross Platform template as Blank app ->Set UI Technology as Forms and sharing as PCL. Afterwards, Visual Studio creates 4 projects (Portable, Droid, iOS, UWP) and displays Getting Started.XamarinPage.

Step 3
Select the Cross Platform template as Blank app ->Set UI Technology as Forms and sharing as PCL. Afterwards, Visual Studio creates 4 projects (Portable, Droid, iOS, UWP) and displays Getting Started.XamarinPage.

Step 3
Add XAML page for demo. Right click XamFormGesTap(Portable) project and select ADD-> NewItem.
Select ->CrossPlatform-> FormXamlPage-> Give the relevant name (GesTapTest.Xaml).
Add 2 images to XamFormGesTap_Droid project Resourses-> Drawable Folder and XamFormGesTap_UWP project
In GesTapTest.Xaml, add Label and Image Control with Tap Gesture code.



Join the conversation! Your thoughts help the community grow.