//Variable to check whether the double tab event is triggered or not.
private bool isDoubleTapped;
private void DataGrid_GridDoubleTapped(object sender, GridDoubleTappedEventsArgs e)
{
isDoubleTapped = true;
}
private async void DataGrid_GridTapped(object sender, GridTappedEventsArgs e)
{
//do your code here if any..
await Task.Delay(2000);
if (isDoubleTapped)
{
//if double tap is listened, this block will hit. you can do your codes here.
}
isDoubleTapped = false;
} |