54 lines
2.6 KiB
XML
54 lines
2.6 KiB
XML
<!--
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
|
|
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
|
|
MainPage.xaml - Primary application page. Contains two buttons for
|
|
logging into and fetching albums from Facebook, and a GridView
|
|
control for displaying the downloaded album data.
|
|
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
|
|
-->
|
|
|
|
<Page
|
|
x:Class="FacebookDemo.MainPage"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="using:FacebookDemo"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d">
|
|
|
|
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="150" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<GridView Grid.Row="0" x:Name="AlbumGrid">
|
|
<GridView.ItemTemplate>
|
|
<DataTemplate>
|
|
<Grid HorizontalAlignment="Left" Width="400" Height="250" Margin="5">
|
|
<Image Source="{Binding Preview}" Stretch="UniformToFill" />
|
|
<StackPanel VerticalAlignment="Bottom">
|
|
<TextBlock Text="{Binding Title}" FontSize="30" HorizontalAlignment="Left" VerticalAlignment="Center"/>
|
|
<TextBlock Text="{Binding Count}" FontSize="12" HorizontalAlignment="Right" VerticalAlignment="Top" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</DataTemplate>
|
|
</GridView.ItemTemplate>
|
|
</GridView>
|
|
<StackPanel Orientation="Horizontal" Grid.Row="1">
|
|
<Button x:Name="LoginButton" Click="LoginButton_Click_1">Login</Button>
|
|
<Button x:Name="AlbumButton" IsEnabled="False" Click="AlbumButton_Click_1">Fetch Albums</Button>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Page>
|