-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainPage.xaml
67 lines (56 loc) · 2.29 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
65
66
67
<?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"
x:Class="MauiAppWindowTest.MainPage">
<Grid>
<ScrollView>
<VerticalStackLayout
Padding="30,0"
Spacing="25">
<Image
Source="dotnet_bot.png"
HeightRequest="185"
Aspect="AspectFit" />
<Label
Text="Testing Android loosing Windows references & SigFault with internet connectivity"
Style="{StaticResource Headline}" />
<Button
Text="Request Location Permission"
Clicked="RequestPermissionClicked"
HorizontalOptions="Fill" />
<Button
Text="Request Camera Permission"
Clicked="RequestCameraPermissionClicked"
HorizontalOptions="Fill" />
<Button
Text="Request Notification Permission"
Clicked="RequestNotificationPermissionClicked"
HorizontalOptions="Fill" />
<Label
Text="Windows List:"
FontAttributes="Bold" />
<CollectionView ItemsSource="{Binding WindowsList}">
<CollectionView.ItemTemplate>
<DataTemplate>
<Label Text="{Binding}" />
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
<Button
Text="Force refresh"
Clicked="RefreshClicked"
HorizontalOptions="Fill" />
</VerticalStackLayout>
</ScrollView>
<Border BackgroundColor="#AA000000"
IsVisible="{Binding HasNoInternet}"
VerticalOptions="Start"
Margin="0,10"
Padding="20,10"
HorizontalOptions="Center">
<Label Text="There's NO internet"
TextColor="White"
FontAttributes="Bold" />
</Border>
</Grid>
</ContentPage>