-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainPage.xaml
64 lines (60 loc) · 2.6 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
x:Class="Maui.AppStores.SampleApp.MainPage"
x:DataType="sampleApp:MainPage"
xmlns="http:https://schemas.microsoft.com/dotnet/2021/maui"
xmlns:appStores="clr-namespace:Maui.AppStores;assembly=Maui.AppStoreInfo"
xmlns:sampleApp="clr-namespace:Maui.AppStores.SampleApp"
xmlns:x="http:https://schemas.microsoft.com/winfx/2009/xaml">
<ContentPage.Resources>
<sampleApp:VersionConverter x:Key="VersionConverter" />
</ContentPage.Resources>
<ScrollView>
<VerticalStackLayout
HorizontalOptions="Center"
Margin="5"
Spacing="5"
VerticalOptions="Center">
<HorizontalStackLayout Spacing="5">
<Label Text="Current Version:" />
<Entry
IsSpellCheckEnabled="False"
IsTextPredictionEnabled="False"
Text="{Binding CurrentVersion, Source={x:Static appStores:AppStoreInfo.Options}, Converter={StaticResource VersionConverter}}"
WidthRequest="400" />
</HorizontalStackLayout>
<HorizontalStackLayout Spacing="5">
<Label Text="Country Code:" />
<Entry
IsSpellCheckEnabled="False"
IsTextPredictionEnabled="False"
Text="{Binding CountryCode, Source={x:Static appStores:AppStoreInfo.Options}}"
WidthRequest="400" />
</HorizontalStackLayout>
<HorizontalStackLayout>
<Label Text="Package Name:" />
<Entry
IsSpellCheckEnabled="False"
IsTextPredictionEnabled="False"
Text="{Binding PackageName, Source={x:Static appStores:AppStoreInfo.Options}}"
WidthRequest="400" />
</HorizontalStackLayout>
<Button
Command="{Binding OpenStoreCommand}"
HorizontalOptions="Fill"
Text="Open Store" />
<Button
Command="{Binding CheckLatestVersionCommand}"
HorizontalOptions="Fill"
Text="Check Latest Version" />
<Button
Command="{Binding RequestAppStoreInformationCommand}"
HorizontalOptions="Fill"
Text="Request App Store Information" />
<Button
Command="{Binding OpenStoreReviewPageCommand}"
HorizontalOptions="Fill"
Text="Open Store Review Page" />
</VerticalStackLayout>
</ScrollView>
</ContentPage>