-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHabitDetailsPage.xaml
60 lines (49 loc) · 2.28 KB
/
HabitDetailsPage.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
<?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="beadando.HabitDetailsPage"
x:Name="habitDetailsPage">
<Shell.BackButtonBehavior>
<BackButtonBehavior IsEnabled="True" />
</Shell.BackButtonBehavior>
<VerticalStackLayout>
<StackLayout Padding="20">
<Border Stroke="{Binding Color}"
Background="{Binding Color}"
StrokeThickness="4"
Padding="5"
>
<Border.StrokeShape>
<RoundRectangle CornerRadius="10,10,10,10" />
</Border.StrokeShape>
<Label Text="{Binding Text}" FontSize="30" BackgroundColor="{Binding Color}" TextColor="White"/>
</Border>
<Label Text="Starting Date: " Padding="0,10,0,0" FontSize="20"/>
<Label Text="{Binding StartDate}" />
<Label Text="Achievement rate of all times:" Padding="0,10,0,0" FontSize="24"/>
<Label x:Name="allTimeRateLbl" FontSize="30" Text="-"/>
<Label Text="Achievement rate of the last 7 days:" Padding="0,10,0,0" FontSize="16"/>
<Label x:Name="sevenDaysRateLbl" FontSize="26" Text="-"/>
<Label Text="Achievement rate of the last month" Padding="0,10,0,0" FontSize="16"/>
<Label x:Name="lastMonthRateLbl" FontSize="26" Text="-"/>
<Border Stroke="LightGray"
StrokeThickness="4"
Padding="5"
Margin="0,20,0,0"
WidthRequest="70"
HeightRequest="70"
>
<Border.StrokeShape>
<RoundRectangle CornerRadius="10,10,10,10" />
</Border.StrokeShape>
<ImageButton
Source="pen_to_square_regular.png"
WidthRequest="40"
HeightRequest="40"
HorizontalOptions="Center"
Command="{Binding Path=ModifyHabit, Source={x:Reference habitDetailsPage}}"
CommandParameter="{Binding .}"/>
</Border>
</StackLayout>
</VerticalStackLayout>
</ContentPage>