views:

54

answers:

3

I'm trying to achieve swipe navigation on Windows Phone 7. I would like to navigate from one page to another by swiping left or right. How can i do this?

A: 

Look at the GestureService and GestureListener in the Silverlight for Windows Phone Toolkit

Michael S. Scherotter
+1  A: 

You might want to investigate the pivot control -- this is like a tab control where left and right swipes move between pages. Some of the labs on Channel 9 cover them (here, look at Exercise 2 for a walkthrough of creating one).

Dr Herbie
A: 

You can have a horizontal ScrollViewer which contains a horizontal StackPanel. Then put your pages in the StackPanel. Check out http://wp7iphone.codeplex.com for an example of how to emulate the iPhone-style horizontal swipe interface with this approach.

If you want the scrollviewer to "snap" to the nearest page when the swipe stops, it can handle the ManipulationCompleted event and manually adjust its HorizontalOffset appropriately.

John Vert