Version 1.0.1
This commit is contained in:
90
WheresMyMoney.Maui/BalancePage.xaml
Normal file
90
WheresMyMoney.Maui/BalancePage.xaml
Normal file
@@ -0,0 +1,90 @@
|
||||
<?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:WheresMyMoney.Maui"
|
||||
x:Class="WheresMyMoney.Maui.BalancePage">
|
||||
<ContentPage.ToolbarItems>
|
||||
<ToolbarItem Text="Aktualizuj środki" Order="Secondary" Clicked="UpdateBalance_OnClicked" />
|
||||
</ContentPage.ToolbarItems>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<!-- Header Section -->
|
||||
<Grid Grid.Row="0" Padding="20">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!-- Title -->
|
||||
<Label Text="dostępne środki"
|
||||
Grid.Row="0"
|
||||
FontSize="16"
|
||||
FontAttributes="None"
|
||||
TextColor="Gray" />
|
||||
|
||||
<Label x:Name="AvailableFundsText"
|
||||
Grid.Row="1"
|
||||
FontSize="24"
|
||||
FontAttributes="Bold"
|
||||
Text="24 259,92 PLN" />
|
||||
|
||||
<!-- Subtitle -->
|
||||
<HorizontalStackLayout Grid.Row="2">
|
||||
<Label Text="wolne środki:"
|
||||
FontSize="16"
|
||||
FontAttributes="None"
|
||||
TextColor="Gray"
|
||||
Margin="0,4,4,0" />
|
||||
<Label x:Name="FreeFundsText"
|
||||
FontSize="20"
|
||||
FontAttributes="Bold"
|
||||
Text="12 259,92 PLN" />
|
||||
</HorizontalStackLayout>
|
||||
</Grid>
|
||||
<BoxView Grid.Row="1" HeightRequest="1" BackgroundColor="Gray" Margin="0,10,0,10" />
|
||||
<!-- Scrollable List Section -->
|
||||
<CollectionView Grid.Row="2" ItemsSource="{Binding PlannedPaymentsViewModels}">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate x:DataType="local:PlannedPaymentsViewModel">
|
||||
<Grid Padding="10" ColumnSpacing="10">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!-- Date Text -->
|
||||
<Label Grid.Column="0"
|
||||
Text="{Binding DateText}"
|
||||
VerticalTextAlignment="Start" />
|
||||
|
||||
<!-- Planned Payments List -->
|
||||
<VerticalStackLayout Grid.Column="1"
|
||||
BindableLayout.ItemsSource="{Binding PlannedPayments}">
|
||||
<BindableLayout.ItemTemplate>
|
||||
<DataTemplate x:DataType="local:PlannedPaymentViewModel">
|
||||
<VerticalStackLayout>
|
||||
<BoxView HeightRequest="1" BackgroundColor="Gray" Margin="0,5,0,5" />
|
||||
<Label Text="{Binding Name}"
|
||||
FontSize="20"
|
||||
FontAttributes="None" />
|
||||
<Label Text="{Binding AmountText}"
|
||||
FontSize="20"
|
||||
FontAttributes="Bold"
|
||||
HorizontalTextAlignment="End" />
|
||||
</VerticalStackLayout>
|
||||
</DataTemplate>
|
||||
</BindableLayout.ItemTemplate>
|
||||
</VerticalStackLayout>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
</Grid>
|
||||
</ContentPage>
|
||||
Reference in New Issue
Block a user