This is the code that is used at the pre-Hackathon training session on Thursday.
The code is explained using the “Flower” type of comments (don’t use this in production, it is used by me to illustrate many points in the code).
If you do not open the attached (scroll down to the bottom of the page to get the code).
Basically, with the Mango version of the WP7 O/S gestures are easily caught in programming by the use of the GestureSample enumerations that allow you to implement the test for the type of gesture such as tap, double tap, and so forth.
If you want, you can cut and paste any of the code as necessary.