-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathMainPage.xaml
57 lines (54 loc) · 2.11 KB
/
MainPage.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<Page
x:Class="ManualGraphRequestSample.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:ManualGraphRequestSample"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:models="using:ManualGraphRequestSample.Models"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
mc:Ignorable="d">
<Grid ColumnSpacing="24">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<StackPanel
HorizontalAlignment="Right"
VerticalAlignment="Center"
Orientation="Horizontal">
<Button
x:Name="SignInButton"
VerticalAlignment="Center"
Click="OnSignInButtonClick"
Content="Sign In" />
<ProgressRing
x:Name="SignInLoadingRing"
Width="24"
Height="24"
Margin="8,0,0,0"
VerticalAlignment="Center"
IsActive="False" />
</StackPanel>
<ListView
Grid.Column="1"
Width="300"
HorizontalAlignment="Left"
VerticalAlignment="Center"
ItemsSource="{x:Bind TaskCollection}">
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Setter Property="VerticalContentAlignment" Value="Stretch" />
</Style>
</ListView.ItemContainerStyle>
<ListView.ItemTemplate>
<DataTemplate x:DataType="models:TodoTask">
<Grid Padding="12,8">
<TextBlock Text="{x:Bind Title}" TextTrimming="CharacterEllipsis" />
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</Grid>
</Page>