The last touch event, analyzed in this chapter, is rotation. It is very useful, for example, to rotate the image, as you will see in this recipe.
To step through this recipe, you need only the automatically generated project.
To prepare the example that handles the rotate touch event to rotate the image presented on the page, perform the following steps:
Photo.jpgfile to the
MainPage.xamlfile, as follows:
<Page (...)> <Grid> <Image Source="/Assets/Photo.jpg" ImageOpened="Image_ImageOpened" ManipulationMode="Rotate,RotateInertia" ...