O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

GestureListener Events in Detail

This section looks at each gesture and the events that correspond to each.

Tap Gesture

When a tap gesture is detected, the GestureListener.Tap event is raised. The event handler accepts a GestureEventArgs parameter, as shown:

void HandleTap(object sender, GestureEventArgs e){    /* method body. */}

The GestureListener events are quasi routed events. That is, they behave like routed events, yet their event arguments do not inherit from the RoutedEvent class. Like the RoutedEventArgs class, the GestureEventArgs includes an OriginalSource property that allows you to retrieve a reference to the object that raised the event, which may differ from the sender argument provided to the event ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required