courses I tutorials

Explore different tutorials to get hands on with Silverlight and Expression Blend across a wide array of topics in a short time.

school.tutorials

Windows Phone Series

These tutorials delve into the availability and implementation of gestures for Windows Phone.

More tutorials...

Designing for Gestures on Windows Phone

No longer do smart phones of today depend only on hardware keyboards or the stylus of the past. Windows Phone devices come equipped with a capacitive touch screen that offers a smooth, accurate, multi-touch enabled experience for the user. By default your application will handle touch events like mouse events, for which all of the controls have been prepared. Beyond just the basic push of a button or scroll of a list, you can offer your users a more natural and immersive experience using gestures.

In this tutorial, you will learn about the available gestures supported by Windows Phone. You will also walkthrough how to implement each gesture, within your own application. Follow along with this tutorial by downloading the WP7_Gestures_Assets folder.

Gestures Overview

What's covered in this video:

  • Gesture design guidance
  • Available gestures
  • Example of gestures

Implementing Simple Gestures

Learn how to implement simple gestures in your Windows Phone projects by leveraging the functionality found in the Silverlight for Windows Phone toolkit. In this lesson you will learn how to implement the following gestures: tapping, double-tapping and flicking.

What's covered in this video:

  • Referencing the Silverlight for Windows Phone Toolkit
  • Adding the Tap Method
  • Adding the Double-Tap Method
  • Adding the Flick Method

Implementing a Pan Gesture

Although you can handle touch input directly and create your own logic for gestures, the Silverlight for Windows Phone Toolkit makes it simple. Once you have the toolkit installed, you can use the GestureService and Gesture Listener classes to handle simple and advanced gestures.

In this lesson, you will how to setup a GestureListener object and handle simple gestures. You will also see how to implement a Pan Gesture. The Pan gesture can be used for multiple purposes including moving and reordering content or navigating an application. In this lesson, you learn how to implement a Pan gesture with varying degrees of detail.

What's covered in this video:

  • Preparing to use the Toolkit
  • Adding the GestureService and GestureListener
  • Handling a Simple Pan
  • Handling a Tracking or Diagonal Pan
  • Triggering an object to scale during dragging

Conclusion

In this tutorial, you learned which gestures are supported by Windows Phone and how each one is defined. You also walked through how to implement each gesture, within your own application and custom code.