-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMainPage.xaml
47 lines (46 loc) · 2.27 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
<Page x:Class="prestige.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:prestige"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid>
<ListView ItemsSource="{x:Bind ServerEntries}"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch">
<ListView.ItemTemplate>
<DataTemplate x:DataType="local:OPDSServerEntry">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="*" />
<RowDefinition Height="*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0"
Grid.Row="0"
Text="{x:Bind Name}"
Style="{ThemeResource SubtitleTextBlockStyle}" />
<TextBlock Grid.Column="0"
Grid.Row="1"
Text="{x:Bind Url}"
Style="{ThemeResource BodyTextBlockStyle}" />
<TextBlock Grid.Column="0"
Grid.Row="2"
Text="{x:Bind Username}"
Style="{ThemeResource BodyTextBlockStyle}" />
<TextBlock Grid.Column="0"
Grid.Row="3"
Text="{x:Bind DisplayableLastAccessedOn}"
Style="{ThemeResource BodyTextBlockStyle}" />
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</Grid>
</Page>