-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainPage.xaml
59 lines (55 loc) · 2.16 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
<?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"
xmlns:local="clr-namespace:CardioMeter"
x:Class="CardioMeter.MainPage">
<ContentPage.Resources>
<local:HeartRateGraph x:Key="heartRateGraph" />
</ContentPage.Resources>
<ScrollView>
<VerticalStackLayout
Spacing="25"
Padding="30,0"
VerticalOptions="Center">
<Label
Text="Not Connected"
x:Name="MainStatusLabel"
FontSize="Large"
FontAttributes="Bold"
HorizontalOptions="Center" />
<Button
x:Name="ConnectBtn"
Clicked="OnConnectBtnClicked"/>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Label
Text="Heart Rate"
x:Name="HeartRateLabel"
TextType="Html"
FontSize="50"
FontAttributes="Bold"
HorizontalOptions="Center" />
<Label
Grid.Row="1"
Text="RR Interval"
TextType="Html"
x:Name="RRIntervalLabel"
FontSize="35"
FontAttributes="Bold"
HorizontalOptions="Center" />
</Grid>
<GraphicsView
Drawable="{StaticResource heartRateGraph}"
x:Name="heartRateGraphView"
HorizontalOptions="Fill"
HeightRequest="300"
/>
</VerticalStackLayout>
</ScrollView>
</ContentPage>