Friday, June 13, 2014

CHAPTER 2 EX 01 John list of images

Ex 1) John needs to create a Windows store app for viewing images.The interface of the app should display the list of images on left side and the selected image on the right side,as shown in the following figure.

John needs to start with the creation Of the intial interface that should appear as shown in the following figure.

Help John create an attractive interface for the app by identifying suitable controls for the app.

Ans 1) Paste in MainPage.xaml




Incomplete code


<Page
    x:Class="ImageViewer1.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:ImageViewer1"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
  
    <Viewbox>
    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
    <Button Content="Image List" HorizontalAlignment="Left" Margin="10,10,0,0"
     <ListBox HorizontalAlignment="Left" height="697" Margin="10,61,0,0"

     <Button Content="Image Preview" HorizontalAlignment="Left" Margin="346
     <Button isEnabled="False" HorizontalAlignment="Left" height="697" Margin
     <Image Stretch="Uniform"></Image>
     </Button> 
    </Grid>
</Page>



click the drop-down button present on the right side of the Local machine button.
Select simulator the app is displayed in simulator mode.

No comments:

Post a Comment