-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainPage.xaml
72 lines (61 loc) · 3.06 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
68
69
70
71
72
<?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="VpnHood.App.CoreSample.MauiForm.MainPage">
<ScrollView>
<VerticalStackLayout
Padding="30,0"
Spacing="25">
<Image
Source="vpnhood.png"
HeightRequest="100"
Aspect="AspectFit"/>
<Label
Text="VpnHood! Maui Sample (Core)"
Style="{StaticResource Headline}"
SemanticProperties.HeadingLevel="Level2"/>
<Button
x:Name="CounterBtn"
MaximumWidthRequest="200"
Text="Connect"
Clicked="OnConnectClicked"
HorizontalOptions="Fill" />
<HorizontalStackLayout HorizontalOptions="Center">
<Label VerticalTextAlignment="Center"
Text="Connection State:"
FontSize="Small"
Margin="5"/>
<Label VerticalTextAlignment="Center"
x:Name="StatusLabel"
Text=""
FontSize="Small"
TextColor="LightGreen"/>
</HorizontalStackLayout>
<StackLayout HorizontalOptions="Center">
<Label VerticalTextAlignment="Center"
Margin="5"
x:Name="ErrorLabel"
Text=""
TextColor="Red"/>
<Label
HorizontalTextAlignment="Start"
Padding="0,10,0,0"
TextColor="IndianRed"
Text="* This is a test server, and the session will be terminated in a few minutes."/>
<Label
HorizontalTextAlignment="Start"
TextColor="BurlyWood"
Padding="0,10,0,0"
Text="This sample demonstrates how to connect to a VpnHoodServer using the VpnHoodClient. However, developing a fully functional VPN application involves much more, including handling UI commands, accounting, billing, advertising, notifications, managing keys, handling reconnections, handling exceptions, acquiring permissions, leveraging OS features such as Tile, Always ON, among other considerations. Consider using VpnHood.AppLib, which provides a comprehensive set of extended functionalities."/>
<Label
HorizontalTextAlignment="Start"
Padding="0,10,0,0"
Text="* For debugging on Windows, you need to disable requireAdministrator in app.manifest."/>
<Label
HorizontalTextAlignment="Start"
Padding="0,10,0,0"
Text="* Please contact us if this sample is outdated or not working. Report issues at: https://github.com/vpnhood/VpnHood/issues"/>
</StackLayout>
</VerticalStackLayout>
</ScrollView>
</ContentPage>