107 lines
5.3 KiB
XML
107 lines
5.3 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<ContentPage
|
|
x:Class="cfs_tracker.Views.WeekPage"
|
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
x:Name="ThisPage"
|
|
Title="Woche">
|
|
|
|
<ScrollView>
|
|
<VerticalStackLayout Padding="16" Spacing="14">
|
|
|
|
<Grid ColumnDefinitions="Auto,*,Auto,Auto">
|
|
<Button
|
|
Grid.Column="0"
|
|
Text="◀"
|
|
WidthRequest="52"
|
|
HeightRequest="44"
|
|
Command="{Binding PreviousWeekCommand}" />
|
|
|
|
<Label
|
|
Grid.Column="1"
|
|
Text="{Binding WeekText}"
|
|
HorizontalTextAlignment="Center"
|
|
VerticalTextAlignment="Center"
|
|
FontSize="22"
|
|
FontAttributes="Bold" />
|
|
|
|
<Button
|
|
Grid.Column="2"
|
|
Text="Heute"
|
|
Margin="8,0,0,0"
|
|
Command="{Binding TodayCommand}" />
|
|
|
|
<Button
|
|
Grid.Column="3"
|
|
Text="▶"
|
|
WidthRequest="52"
|
|
HeightRequest="44"
|
|
Margin="8,0,0,0"
|
|
Command="{Binding NextWeekCommand}" />
|
|
</Grid>
|
|
|
|
<CollectionView ItemsSource="{Binding Days}" SelectionMode="None">
|
|
<CollectionView.ItemTemplate>
|
|
<DataTemplate>
|
|
<Border
|
|
Margin="0,0,0,10"
|
|
Padding="12"
|
|
BackgroundColor="White"
|
|
Stroke="#D0D0D0"
|
|
StrokeThickness="1"
|
|
StrokeShape="RoundRectangle 12">
|
|
|
|
<Grid RowDefinitions="Auto,Auto" ColumnDefinitions="*" RowSpacing="10">
|
|
<VerticalStackLayout Grid.Row="0">
|
|
<Label Text="{Binding DayText}" FontAttributes="Bold" FontSize="18" />
|
|
<Label Text="{Binding DateText}" FontSize="13" Opacity="0.7" />
|
|
</VerticalStackLayout>
|
|
|
|
<Grid Grid.Row="1" ColumnDefinitions="*,*" ColumnSpacing="10">
|
|
<Border
|
|
Grid.Column="0"
|
|
BackgroundColor="{Binding MorningBackgroundColor}"
|
|
StrokeThickness="0"
|
|
StrokeShape="RoundRectangle 10"
|
|
Padding="10">
|
|
<Border.GestureRecognizers>
|
|
<TapGestureRecognizer
|
|
Command="{Binding Source={x:Reference ThisPage}, Path=BindingContext.OpenDayCommand}"
|
|
CommandParameter="{Binding .}" />
|
|
</Border.GestureRecognizers>
|
|
|
|
<VerticalStackLayout>
|
|
<Label Text="Vormittag" FontAttributes="Bold" TextColor="{Binding MorningTextColor}" />
|
|
<Label Text="{Binding MorningText}" FontSize="18" TextColor="{Binding MorningTextColor}" />
|
|
<Label Text="{Binding MorningCountText}" FontSize="12" TextColor="{Binding MorningTextColor}" />
|
|
</VerticalStackLayout>
|
|
</Border>
|
|
|
|
<Border
|
|
Grid.Column="1"
|
|
BackgroundColor="{Binding AfternoonBackgroundColor}"
|
|
StrokeThickness="0"
|
|
StrokeShape="RoundRectangle 10"
|
|
Padding="10">
|
|
<Border.GestureRecognizers>
|
|
<TapGestureRecognizer
|
|
Command="{Binding Source={x:Reference ThisPage}, Path=BindingContext.OpenDayCommand}"
|
|
CommandParameter="{Binding .}" />
|
|
</Border.GestureRecognizers>
|
|
|
|
<VerticalStackLayout>
|
|
<Label Text="Nachmittag" FontAttributes="Bold" TextColor="{Binding AfternoonTextColor}" />
|
|
<Label Text="{Binding AfternoonText}" FontSize="18" TextColor="{Binding AfternoonTextColor}" />
|
|
<Label Text="{Binding AfternoonCountText}" FontSize="12" TextColor="{Binding AfternoonTextColor}" />
|
|
</VerticalStackLayout>
|
|
</Border>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
</DataTemplate>
|
|
</CollectionView.ItemTemplate>
|
|
</CollectionView>
|
|
|
|
</VerticalStackLayout>
|
|
</ScrollView>
|
|
</ContentPage> |