Tap Gesture

,

The simplest of all the gestures, a tap occurs when a finger touches the screen momentarily (see Figure 12.3).

Image

FIGURE 12.3 Tap gesture.

This gesture is analogous to a single-click performed with a mouse. The tap gesture can be broken down into the following two parts:

Image Finger down provides touch indication.

Image 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";
}

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.12.120.178