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.
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> <Style TargetType="Image"> <Setter Property="Stretch" Value="UniformToFill" /> <Setter Property="VerticalAlignment" Value="Center...