Debian Codegraph @

Release/samples/FacebookDemo/MainPage.xaml

raw
1 <!--
2 Copyright (C) Microsoft. All rights reserved.
3 Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4
5 =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
6 MainPage.xaml - Primary application page. Contains two buttons for
7 logging into and fetching albums from Facebook, and a GridView
8 control for displaying the downloaded album data.
9 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
10 -->
11
12 <Page
13 x:Class="FacebookDemo.MainPage"
14 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
15 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
16 xmlns:local="using:FacebookDemo"
17 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
18 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
19 mc:Ignorable="d">
20
21 <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
22 <Grid.RowDefinitions>
23 <RowDefinition Height="*" />
24 <RowDefinition Height="150" />
25 </Grid.RowDefinitions>
26
27 <GridView Grid.Row="0" x:Name="AlbumGrid">
28 <GridView.ItemTemplate>
29 <DataTemplate>
30 <Grid HorizontalAlignment="Left" Width="400" Height="250" Margin="5">
31 <Image Source="{Binding Preview}" Stretch="UniformToFill" />
32 <StackPanel VerticalAlignment="Bottom">
33 <TextBlock Text="{Binding Title}" FontSize="30" HorizontalAlignment="Left" VerticalAlignment="Center"/>
34 <TextBlock Text="{Binding Count}" FontSize="12" HorizontalAlignment="Right" VerticalAlignment="Top" />
35 </StackPanel>
36 </Grid>
37 </DataTemplate>
38 </GridView.ItemTemplate>
39 </GridView>
40 <StackPanel Orientation="Horizontal" Grid.Row="1">
41 <Button x:Name="LoginButton" Click="LoginButton_Click_1">Login</Button>
42 <Button x:Name="AlbumButton" IsEnabled="False" Click="AlbumButton_Click_1">Fetch Albums</Button>
43 </StackPanel>
44 </Grid>
45 </Page>