O'Reilly logo

Windows Application Development Cookbook by Marcin Jamro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Presenting a collection of photos

High-quality images are certainly a popular kind of content in multimedia applications, so it is obvious that this topic will be also taken into account in the current chapter. In this recipe, you will learn how to present a collection of photos.

As an example, you will create a simple photo gallery where each photo is presented on a separate slide, which could be changed by sliding a finger.

Getting ready

To step through this recipe, you only need the automatically generated project.

How to do it...

Place the 01.jpg, 02.jpg, 03.jpg, and04.jpg files in the Assets directory. Then, add the FlipView control to the page and specify images by modifying the content of the MainPage.xaml file, as follows:

 <Page (...)> <Page.Resources> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required