-
Notifications
You must be signed in to change notification settings - Fork 0
/
HeartRateZoneEditPage.xaml
46 lines (45 loc) · 2.4 KB
/
HeartRateZoneEditPage.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
<?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="CardioMeter.HeartRateZoneEditPage">
<ContentPage.Content>
<VerticalStackLayout
Padding="10,0"
Spacing="10"
VerticalOptions="Center">
<CollectionView
x:Name="HeartRateZoneCollectionView"
>
<CollectionView.ItemTemplate>
<DataTemplate>
<Grid Padding="10" RowSpan="10" ColumnSpacing="10">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="50" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="2*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="2*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<BoxView
WidthRequest="30"
HeightRequest="50"
VerticalOptions="Fill"
HorizontalOptions="Center"
Color="{Binding Color}"
Grid.RowSpan="2" />
<Label Grid.Row="0" Grid.Column="1" VerticalOptions="Center" Text="{Binding Title}"/>
<Entry Grid.Row="0" Grid.Column="2" Keyboard="Numeric" Text="{Binding Value, Mode=TwoWay}" TextChanged="OnZoneChanged" />
<Label Grid.Row="0" Grid.Column="3" Text="{Binding Unit}" VerticalOptions="Center"/>
<Entry Grid.Row="0" Grid.Column="4" IsEnabled="False" Text="{Binding EffectiveBPM}" />
<Label Grid.Row="0" Grid.Column="5" VerticalOptions="Center" Text="(bpm)"/>
</Grid>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
</VerticalStackLayout>
</ContentPage.Content>
</ContentPage>