Double Tap Gesture

The double tap gesture occurs when a finger quickly touches the screen twice (see Figure 12.4). This gesture is analogous to a double-click performed with a mouse.

Image

FIGURE 12.4 Double tap gesture.

The double tap is primarily designed to be used to toggle between the in and out zoom states of a control.

An event handler for the DoubleTap event is shown in the following excerpt:

void HandleDoubleTap(object sender, GestureEventArgs e){    textBlock.Text = "double tap";}

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.