I can easily handle 1 finger Tapped
, DoubleTap
and Holding
gestures like this:
public MainPage()
{
this.InitializeComponent();
this.Tapped += mc_Tapped;
this.DoubleTapped += mc_DoubleTapped;
this.Holding += mc_Holding;
}
public void mc_Tapped(object sender, TappedRoutedEventArgs e)
{
//Tap
}
public void mc_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
{
//DoubleTap
}
public void mc_Holding(object sender, HoldingRoutedEventArgs e)
{
//Hold
}
But the events don't have a property to get the number of fingers and they don't even get fired when more than 1 touch contact is present on the screen. I also want to handle 2, 3, 4, 5 fingers Tapped
, DoubleTap
and Holding
gestures. Can anyone tell me how to do that?