Repository navigation
Expand file tree
/
Copy pathWeatherPage.xaml
More file actions
96 lines (79 loc) · 2.93 KB
/
Copy pathWeatherPage.xaml
File metadata and controls
96 lines (79 loc) · 2.93 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?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="WeatherAppAPI.WeatherPage"
Title="Weather"
BackgroundColor="#2563EB">
<ScrollView>
<VerticalStackLayout
x:Name="vStack"
BackgroundColor="#2563EB"
Padding="24"
Spacing="20">
<Label
Text="Current Weather"
FontSize="32"
FontAttributes="Bold"
TextColor="White"
HorizontalOptions="Center"
HorizontalTextAlignment="Center"
Margin="0,20,0,10" />
<Frame
BackgroundColor="White"
CornerRadius="25"
Padding="20"
HasShadow="True"
BorderColor="Transparent">
<VerticalStackLayout Spacing="10">
<Label
x:Name="CityLbl"
Text="Your City"
FontSize="30"
FontAttributes="Bold"
TextColor="#0F172A"
HorizontalOptions="Center"
HorizontalTextAlignment="Center" />
<Image
x:Name="WeatherIMG"
WidthRequest="160"
HeightRequest="160"
HorizontalOptions="Center" />
<Label
x:Name="TempLbl"
Text="-- °C"
FontSize="46"
FontAttributes="Bold"
TextColor="#2563EB"
HorizontalOptions="Center"
HorizontalTextAlignment="Center" />
<Label
x:Name="ConditionsLBL"
Text="Weather Conditions"
FontSize="20"
FontAttributes="Bold"
TextColor="#64748B"
HorizontalOptions="Center"
HorizontalTextAlignment="Center" />
</VerticalStackLayout>
</Frame>
<Button
x:Name="getWeatherBtn"
Text="Get Weather"
Clicked="getWeatherBtn_Clicked"
HorizontalOptions="Fill"
HeightRequest="55"
FontSize="18"
FontAttributes="Bold"
BackgroundColor="#0F172A"
TextColor="White"
CornerRadius="18" />
<Label
Text="Powered by OpenWeather"
FontSize="12"
TextColor="#DBEAFE"
HorizontalOptions="Center"
HorizontalTextAlignment="Center" />
</VerticalStackLayout>
</ScrollView>
</ContentPage>