-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
MainPage.xaml
65 lines (64 loc) · 3.02 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
58
59
60
61
62
63
64
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
Title="Examples"
x:Class="MapboxMauiQs.MainPage">
<ScrollView>
<StackLayout
x:Name="exampleList">
<BindableLayout.ItemTemplate>
<DataTemplate>
<StackLayout>
<StackLayout
Spacing="0"
Padding="0,16,0,0">
<Label
Padding="16,0"
Text="{Binding Key}"
TextColor="Grey" />
<BoxView
Margin="0,4,0,0"
HeightRequest="1"
Color="#e5e5e5" />
<BoxView
Margin="0,4,0,0"
HeightRequest="1"
Color="#e5e5e5" />
</StackLayout>
<StackLayout
BindableLayout.ItemsSource="{Binding .}">
<BindableLayout.ItemTemplate>
<DataTemplate>
<StackLayout
Padding="0,8,0,0">
<StackLayout.GestureRecognizers>
<TapGestureRecognizer
Tapped="TapGestureRecognizer_Tapped" />
</StackLayout.GestureRecognizers>
<Label
Padding="16,0"
Text="{Binding Title}"
FontSize="Body"
TextColor="Black" />
<Grid
Padding="16,0">
<Label
Text="{Binding Subtitle}"
FontSize="Small"
TextColor="Grey" />
</Grid>
<BoxView
Margin="0,4,0,0"
HeightRequest="1"
Color="#e5e5e5" />
</StackLayout>
</DataTemplate>
</BindableLayout.ItemTemplate>
</StackLayout>
</StackLayout>
</DataTemplate>
</BindableLayout.ItemTemplate>
</StackLayout>
</ScrollView>
</ContentPage>