The simplest of all the gestures, a tap occurs when a finger touches the screen momentarily (see Figure 12.3).
This gesture is analogous to a single-click performed with a mouse. The tap gesture can be broken down into the following two parts:
Finger down provides touch indication.
Finger up executes the action.
The Tap
event is raised when the user performs a tap gesture. If the user’s finger remains in contact with the display for longer than one second, the tap event is not raised.
An event handler for the Tap
event is shown in the following excerpt:
void HandleTap(object sender, GestureEventArgs e)
{
textBlock.Text = "tap";
}
3.12.120.178