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 ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.