puffer fix
This commit is contained in:
+99
-24
@@ -1,25 +1,100 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentPage x:Class="cfs_tracker.Views.MonthPage"
|
<ContentPage
|
||||||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
x:Class="cfs_tracker.Views.MonthPage"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
x:Name="ThisPage"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
Title="Monat">
|
x:Name="ThisPage"
|
||||||
<ScrollView><VerticalStackLayout Padding="16" Spacing="14">
|
Title="Monat">
|
||||||
<Grid ColumnDefinitions="Auto,*,Auto,Auto">
|
|
||||||
<Button Grid.Column="0" Text="◀" WidthRequest="52" HeightRequest="44" Command="{Binding PreviousMonthCommand}" />
|
<Grid RowDefinitions="Auto,Auto,*" Padding="16">
|
||||||
<Label Grid.Column="1" Text="{Binding SelectedMonthText}" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" FontSize="24" FontAttributes="Bold" />
|
|
||||||
<Button Grid.Column="2" Text="Heute" Margin="8,0,0,0" Command="{Binding TodayCommand}" />
|
<Grid Grid.Row="0" ColumnDefinitions="Auto,*,Auto,Auto" Margin="0,0,0,12">
|
||||||
<Button Grid.Column="3" Text="▶" WidthRequest="52" HeightRequest="44" Margin="8,0,0,0" Command="{Binding NextMonthCommand}" />
|
<Button
|
||||||
</Grid>
|
Grid.Column="0"
|
||||||
<Grid ColumnDefinitions="*,*,*,*,*,*,*">
|
Text="◀"
|
||||||
<Label Grid.Column="0" Text="Mo" HorizontalTextAlignment="Center" FontAttributes="Bold" />
|
WidthRequest="52"
|
||||||
<Label Grid.Column="1" Text="Di" HorizontalTextAlignment="Center" FontAttributes="Bold" />
|
HeightRequest="44"
|
||||||
<Label Grid.Column="2" Text="Mi" HorizontalTextAlignment="Center" FontAttributes="Bold" />
|
Command="{Binding PreviousMonthCommand}" />
|
||||||
<Label Grid.Column="3" Text="Do" HorizontalTextAlignment="Center" FontAttributes="Bold" />
|
|
||||||
<Label Grid.Column="4" Text="Fr" HorizontalTextAlignment="Center" FontAttributes="Bold" />
|
<Label
|
||||||
<Label Grid.Column="5" Text="Sa" HorizontalTextAlignment="Center" FontAttributes="Bold" />
|
Grid.Column="1"
|
||||||
<Label Grid.Column="6" Text="So" HorizontalTextAlignment="Center" FontAttributes="Bold" />
|
Text="{Binding SelectedMonthText}"
|
||||||
</Grid>
|
HorizontalTextAlignment="Center"
|
||||||
<CollectionView ItemsSource="{Binding Days}" SelectionMode="None"><CollectionView.ItemsLayout><GridItemsLayout Orientation="Vertical" Span="7" /></CollectionView.ItemsLayout><CollectionView.ItemTemplate><DataTemplate><Grid Padding="3"><Border HeightRequest="74" BackgroundColor="{Binding BackgroundColor}" Stroke="{Binding BorderColor}"><Grid Padding="6"><Grid.GestureRecognizers><TapGestureRecognizer Command="{Binding Source={x:Reference ThisPage}, Path=BindingContext.OpenDayCommand}" CommandParameter="{Binding .}" /></Grid.GestureRecognizers><VerticalStackLayout IsVisible="{Binding IsRealDay}" Spacing="4"><Label Text="{Binding DayNumberText}" TextColor="{Binding TextColor}" FontAttributes="Bold" FontSize="16" /><Label Text="{Binding CountText}" TextColor="{Binding TextColor}" FontSize="12" /></VerticalStackLayout></Grid></Border></Grid></DataTemplate></CollectionView.ItemTemplate></CollectionView>
|
VerticalTextAlignment="Center"
|
||||||
</VerticalStackLayout></ScrollView>
|
FontSize="24"
|
||||||
</ContentPage>
|
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 NextMonthCommand}" />
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<Grid Grid.Row="1" ColumnDefinitions="*,*,*,*,*,*,*" Margin="0,0,0,8">
|
||||||
|
<Label Grid.Column="0" Text="Mo" HorizontalTextAlignment="Center" FontAttributes="Bold" />
|
||||||
|
<Label Grid.Column="1" Text="Di" HorizontalTextAlignment="Center" FontAttributes="Bold" />
|
||||||
|
<Label Grid.Column="2" Text="Mi" HorizontalTextAlignment="Center" FontAttributes="Bold" />
|
||||||
|
<Label Grid.Column="3" Text="Do" HorizontalTextAlignment="Center" FontAttributes="Bold" />
|
||||||
|
<Label Grid.Column="4" Text="Fr" HorizontalTextAlignment="Center" FontAttributes="Bold" />
|
||||||
|
<Label Grid.Column="5" Text="Sa" HorizontalTextAlignment="Center" FontAttributes="Bold" />
|
||||||
|
<Label Grid.Column="6" Text="So" HorizontalTextAlignment="Center" FontAttributes="Bold" />
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<CollectionView
|
||||||
|
Grid.Row="2"
|
||||||
|
ItemsSource="{Binding Days}"
|
||||||
|
SelectionMode="None">
|
||||||
|
|
||||||
|
<CollectionView.ItemsLayout>
|
||||||
|
<GridItemsLayout Orientation="Vertical" Span="7" />
|
||||||
|
</CollectionView.ItemsLayout>
|
||||||
|
|
||||||
|
<CollectionView.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<Grid Padding="3">
|
||||||
|
<Border
|
||||||
|
HeightRequest="74"
|
||||||
|
BackgroundColor="{Binding BackgroundColor}"
|
||||||
|
Stroke="{Binding BorderColor}"
|
||||||
|
StrokeThickness="1"
|
||||||
|
StrokeShape="RoundRectangle 10">
|
||||||
|
|
||||||
|
<Grid Padding="6">
|
||||||
|
<Grid.GestureRecognizers>
|
||||||
|
<TapGestureRecognizer
|
||||||
|
Command="{Binding Source={x:Reference ThisPage}, Path=BindingContext.OpenDayCommand}"
|
||||||
|
CommandParameter="{Binding .}" />
|
||||||
|
</Grid.GestureRecognizers>
|
||||||
|
|
||||||
|
<VerticalStackLayout
|
||||||
|
IsVisible="{Binding IsRealDay}"
|
||||||
|
Spacing="4">
|
||||||
|
<Label
|
||||||
|
Text="{Binding DayNumberText}"
|
||||||
|
TextColor="{Binding TextColor}"
|
||||||
|
FontAttributes="Bold"
|
||||||
|
FontSize="16" />
|
||||||
|
|
||||||
|
<Label
|
||||||
|
Text="{Binding CountText}"
|
||||||
|
TextColor="{Binding TextColor}"
|
||||||
|
FontSize="12" />
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</Grid>
|
||||||
|
</Border>
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
</CollectionView.ItemTemplate>
|
||||||
|
</CollectionView>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</ContentPage>
|
||||||
+138
-27
@@ -1,31 +1,142 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentPage x:Class="cfs_tracker.Views.WeekPage"
|
<ContentPage
|
||||||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
x:Class="cfs_tracker.Views.WeekPage"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
x:Name="ThisPage"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
Title="Woche">
|
x:Name="ThisPage"
|
||||||
<ScrollView><VerticalStackLayout Padding="16" Spacing="14">
|
Title="Woche">
|
||||||
<Grid ColumnDefinitions="Auto,*,Auto,Auto">
|
|
||||||
<Button Grid.Column="0" Text="◀" WidthRequest="52" HeightRequest="44" Command="{Binding PreviousWeekCommand}" />
|
<Grid RowDefinitions="Auto,*" Padding="16">
|
||||||
<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}" />
|
<Grid Grid.Row="0" ColumnDefinitions="Auto,*,Auto,Auto" Margin="0,0,0,12">
|
||||||
<Button Grid.Column="3" Text="▶" WidthRequest="52" HeightRequest="44" Margin="8,0,0,0" Command="{Binding NextWeekCommand}" />
|
<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>
|
</Grid>
|
||||||
<CollectionView ItemsSource="{Binding Days}" SelectionMode="None">
|
|
||||||
<CollectionView.ItemTemplate><DataTemplate>
|
<CollectionView
|
||||||
<Border Margin="0,0,0,10" Padding="12">
|
Grid.Row="1"
|
||||||
<Grid RowDefinitions="Auto,Auto" ColumnDefinitions="*" RowSpacing="10">
|
ItemsSource="{Binding Days}"
|
||||||
<VerticalStackLayout Grid.Row="0">
|
SelectionMode="None">
|
||||||
<Label Text="{Binding DayText}" FontAttributes="Bold" FontSize="18" />
|
|
||||||
<Label Text="{Binding DateText}" FontSize="13" TextColor="{StaticResource TextMuted}" />
|
<CollectionView.ItemsLayout>
|
||||||
|
<LinearItemsLayout Orientation="Vertical" ItemSpacing="10" />
|
||||||
|
</CollectionView.ItemsLayout>
|
||||||
|
|
||||||
|
<CollectionView.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<Border
|
||||||
|
Padding="12"
|
||||||
|
BackgroundColor="{DynamicResource PanelBackground}"
|
||||||
|
Stroke="{DynamicResource PanelBorder}"
|
||||||
|
StrokeThickness="1"
|
||||||
|
StrokeShape="RoundRectangle 12">
|
||||||
|
|
||||||
|
<VerticalStackLayout Spacing="10">
|
||||||
|
|
||||||
|
<Grid ColumnDefinitions="*,Auto">
|
||||||
|
<VerticalStackLayout>
|
||||||
|
<Label
|
||||||
|
Text="{Binding DayText}"
|
||||||
|
FontAttributes="Bold"
|
||||||
|
FontSize="18"
|
||||||
|
TextColor="{DynamicResource TextPrimary}" />
|
||||||
|
<Label
|
||||||
|
Text="{Binding DateText}"
|
||||||
|
FontSize="13"
|
||||||
|
TextColor="{DynamicResource TextMuted}" />
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<Grid 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>
|
||||||
</VerticalStackLayout>
|
</VerticalStackLayout>
|
||||||
<Grid Grid.Row="1" ColumnDefinitions="*,*" ColumnSpacing="10">
|
</Border>
|
||||||
<Border Grid.Column="0" BackgroundColor="{Binding MorningBackgroundColor}" 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>
|
</DataTemplate>
|
||||||
<Border Grid.Column="1" BackgroundColor="{Binding AfternoonBackgroundColor}" 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>
|
</CollectionView.ItemTemplate>
|
||||||
</Grid>
|
|
||||||
</Grid>
|
|
||||||
</Border>
|
|
||||||
</DataTemplate></CollectionView.ItemTemplate>
|
|
||||||
</CollectionView>
|
</CollectionView>
|
||||||
</VerticalStackLayout></ScrollView>
|
|
||||||
</ContentPage>
|
</Grid>
|
||||||
|
</ContentPage>
|
||||||
+123
-11
@@ -1,16 +1,128 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentPage x:Class="cfs_tracker.Views.YearPage"
|
<ContentPage
|
||||||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
x:Class="cfs_tracker.Views.YearPage"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
x:Name="ThisPage"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
Title="Jahr">
|
x:Name="ThisPage"
|
||||||
|
Title="Jahr">
|
||||||
|
|
||||||
<Grid RowDefinitions="Auto,*" Padding="16">
|
<Grid RowDefinitions="Auto,*" Padding="16">
|
||||||
|
|
||||||
<Grid Grid.Row="0" ColumnDefinitions="Auto,*,Auto,Auto" Margin="0,0,0,12">
|
<Grid Grid.Row="0" ColumnDefinitions="Auto,*,Auto,Auto" Margin="0,0,0,12">
|
||||||
<Button Grid.Column="0" Text="◀" WidthRequest="52" HeightRequest="44" Command="{Binding PreviousYearCommand}" />
|
<Button
|
||||||
<Label Grid.Column="1" Text="{Binding SelectedYearText}" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" FontSize="24" FontAttributes="Bold" />
|
Grid.Column="0"
|
||||||
<Button Grid.Column="2" Text="Heute" Margin="8,0,0,0" Command="{Binding TodayCommand}" />
|
Text="◀"
|
||||||
<Button Grid.Column="3" Text="▶" WidthRequest="52" HeightRequest="44" Margin="8,0,0,0" Command="{Binding NextYearCommand}" />
|
WidthRequest="52"
|
||||||
|
HeightRequest="44"
|
||||||
|
Command="{Binding PreviousYearCommand}" />
|
||||||
|
|
||||||
|
<Label
|
||||||
|
Grid.Column="1"
|
||||||
|
Text="{Binding SelectedYearText}"
|
||||||
|
HorizontalTextAlignment="Center"
|
||||||
|
VerticalTextAlignment="Center"
|
||||||
|
FontSize="24"
|
||||||
|
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 NextYearCommand}" />
|
||||||
</Grid>
|
</Grid>
|
||||||
<ScrollView Grid.Row="1"><VerticalStackLayout Spacing="12" BindableLayout.ItemsSource="{Binding Months}"><BindableLayout.ItemTemplate><DataTemplate><Border Padding="12"><VerticalStackLayout Spacing="10"><Label Text="{Binding MonthText}" FontSize="20" FontAttributes="Bold" /><HorizontalStackLayout Spacing="4"><Label Text="Mo" WidthRequest="44" HorizontalTextAlignment="Center" FontSize="12" /><Label Text="Di" WidthRequest="44" HorizontalTextAlignment="Center" FontSize="12" /><Label Text="Mi" WidthRequest="44" HorizontalTextAlignment="Center" FontSize="12" /><Label Text="Do" WidthRequest="44" HorizontalTextAlignment="Center" FontSize="12" /><Label Text="Fr" WidthRequest="44" HorizontalTextAlignment="Center" FontSize="12" /><Label Text="Sa" WidthRequest="44" HorizontalTextAlignment="Center" FontSize="12" /><Label Text="So" WidthRequest="44" HorizontalTextAlignment="Center" FontSize="12" /></HorizontalStackLayout><FlexLayout Direction="Row" Wrap="Wrap" JustifyContent="Start" AlignItems="Start" BindableLayout.ItemsSource="{Binding Days}"><BindableLayout.ItemTemplate><DataTemplate><Border WidthRequest="44" HeightRequest="44" Margin="2" BackgroundColor="{Binding BackgroundColor}" Stroke="{Binding BorderColor}"><Grid Padding="4"><Grid.GestureRecognizers><TapGestureRecognizer Command="{Binding Source={x:Reference ThisPage}, Path=BindingContext.OpenDayCommand}" CommandParameter="{Binding .}" /></Grid.GestureRecognizers><VerticalStackLayout IsVisible="{Binding IsRealDay}" Spacing="1"><Label Text="{Binding DayNumberText}" TextColor="{Binding TextColor}" FontSize="11" FontAttributes="Bold" HorizontalTextAlignment="Center" /><Label Text="{Binding CountText}" TextColor="{Binding TextColor}" FontSize="9" HorizontalTextAlignment="Center" /></VerticalStackLayout></Grid></Border></DataTemplate></BindableLayout.ItemTemplate></FlexLayout></VerticalStackLayout></Border></DataTemplate></BindableLayout.ItemTemplate></VerticalStackLayout></ScrollView>
|
|
||||||
|
<ScrollView Grid.Row="1">
|
||||||
|
<VerticalStackLayout
|
||||||
|
Spacing="12"
|
||||||
|
BindableLayout.ItemsSource="{Binding Months}">
|
||||||
|
|
||||||
|
<BindableLayout.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<Border
|
||||||
|
Padding="12"
|
||||||
|
BackgroundColor="{DynamicResource PanelBackground}"
|
||||||
|
Stroke="{DynamicResource PanelBorder}"
|
||||||
|
StrokeThickness="1"
|
||||||
|
StrokeShape="RoundRectangle 12">
|
||||||
|
|
||||||
|
<VerticalStackLayout Spacing="10">
|
||||||
|
|
||||||
|
<Label
|
||||||
|
Text="{Binding MonthText}"
|
||||||
|
FontSize="20"
|
||||||
|
FontAttributes="Bold"
|
||||||
|
TextColor="{DynamicResource TextPrimary}" />
|
||||||
|
|
||||||
|
<HorizontalStackLayout Spacing="4">
|
||||||
|
<Label Text="Mo" WidthRequest="44" HorizontalTextAlignment="Center" FontSize="12" />
|
||||||
|
<Label Text="Di" WidthRequest="44" HorizontalTextAlignment="Center" FontSize="12" />
|
||||||
|
<Label Text="Mi" WidthRequest="44" HorizontalTextAlignment="Center" FontSize="12" />
|
||||||
|
<Label Text="Do" WidthRequest="44" HorizontalTextAlignment="Center" FontSize="12" />
|
||||||
|
<Label Text="Fr" WidthRequest="44" HorizontalTextAlignment="Center" FontSize="12" />
|
||||||
|
<Label Text="Sa" WidthRequest="44" HorizontalTextAlignment="Center" FontSize="12" />
|
||||||
|
<Label Text="So" WidthRequest="44" HorizontalTextAlignment="Center" FontSize="12" />
|
||||||
|
</HorizontalStackLayout>
|
||||||
|
|
||||||
|
<FlexLayout
|
||||||
|
Direction="Row"
|
||||||
|
Wrap="Wrap"
|
||||||
|
JustifyContent="Start"
|
||||||
|
AlignItems="Start"
|
||||||
|
BindableLayout.ItemsSource="{Binding Days}">
|
||||||
|
|
||||||
|
<BindableLayout.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<Border
|
||||||
|
WidthRequest="44"
|
||||||
|
HeightRequest="44"
|
||||||
|
Margin="2"
|
||||||
|
BackgroundColor="{Binding BackgroundColor}"
|
||||||
|
Stroke="{Binding BorderColor}"
|
||||||
|
StrokeThickness="1"
|
||||||
|
StrokeShape="RoundRectangle 8">
|
||||||
|
|
||||||
|
<Grid Padding="4">
|
||||||
|
<Grid.GestureRecognizers>
|
||||||
|
<TapGestureRecognizer
|
||||||
|
Command="{Binding Source={x:Reference ThisPage}, Path=BindingContext.OpenDayCommand}"
|
||||||
|
CommandParameter="{Binding .}" />
|
||||||
|
</Grid.GestureRecognizers>
|
||||||
|
|
||||||
|
<VerticalStackLayout
|
||||||
|
IsVisible="{Binding IsRealDay}"
|
||||||
|
Spacing="1">
|
||||||
|
<Label
|
||||||
|
Text="{Binding DayNumberText}"
|
||||||
|
TextColor="{Binding TextColor}"
|
||||||
|
FontSize="11"
|
||||||
|
FontAttributes="Bold"
|
||||||
|
HorizontalTextAlignment="Center" />
|
||||||
|
<Label
|
||||||
|
Text="{Binding CountText}"
|
||||||
|
TextColor="{Binding TextColor}"
|
||||||
|
FontSize="9"
|
||||||
|
HorizontalTextAlignment="Center" />
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</Grid>
|
||||||
|
</Border>
|
||||||
|
</DataTemplate>
|
||||||
|
</BindableLayout.ItemTemplate>
|
||||||
|
</FlexLayout>
|
||||||
|
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</Border>
|
||||||
|
</DataTemplate>
|
||||||
|
</BindableLayout.ItemTemplate>
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</ScrollView>
|
||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</ContentPage>
|
</ContentPage>
|
||||||
Reference in New Issue
Block a user