-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDatabasePage.xaml
More file actions
57 lines (54 loc) · 2.29 KB
/
DatabasePage.xaml
File metadata and controls
57 lines (54 loc) · 2.29 KB
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
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
x:Class="EntglDb.Test.Maui.DatabasePage"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
Title="Database">
<RefreshView x:Name="CollectionsRefreshView" Command="{Binding RefreshCommand}">
<CollectionView
x:Name="CollectionsCollectionView"
ItemsSource="{Binding Collections}"
SelectionChanged="OnCollectionSelected"
SelectionMode="Single">
<CollectionView.Header>
<VerticalStackLayout Padding="10">
<Label
Margin="0,0,0,10"
FontAttributes="Bold"
FontSize="18"
Text="Collections" />
</VerticalStackLayout>
</CollectionView.Header>
<CollectionView.ItemTemplate>
<DataTemplate>
<Border
Margin="10,0,10,8"
Padding="15"
BackgroundColor="{AppThemeBinding Light=White,
Dark=#2d2d2d}">
<Grid ColumnDefinitions="*, Auto">
<Label
Grid.Column="0"
FontAttributes="Bold"
Text="{Binding Name}"
VerticalOptions="Center" />
<Label
Grid.Column="1"
Text=">"
TextColor="Gray"
VerticalOptions="Center" />
</Grid>
</Border>
</DataTemplate>
</CollectionView.ItemTemplate>
<CollectionView.EmptyView>
<Label
Margin="0,20,0,0"
HorizontalOptions="Center"
Text="No collections found."
TextColor="Gray"
VerticalOptions="Center" />
</CollectionView.EmptyView>
</CollectionView>
</RefreshView>
</ContentPage>