|
|
|
@ -3,7 +3,14 @@
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
|
|
|
x:Class="Banquale.Views.Balance.BalancePage"
|
|
|
|
|
xmlns:local="clr-namespace:Banquale.Views.Balance"
|
|
|
|
|
Shell.NavBarIsVisible="False">
|
|
|
|
|
xmlns:conv="clr-namespace:Banquale.Views.Converters"
|
|
|
|
|
Shell.NavBarIsVisible="False"
|
|
|
|
|
Shell.TabBarIsVisible="True">
|
|
|
|
|
|
|
|
|
|
<ContentPage.Resources>
|
|
|
|
|
<conv:Bool2ColorConverters x:Key="bool2ColorConverters"/>
|
|
|
|
|
<conv:Int2StringConverters x:Key="int2StringConverters"/>
|
|
|
|
|
</ContentPage.Resources>
|
|
|
|
|
|
|
|
|
|
<Grid RowDefinitions="auto, auto, *" x:Name="Grid">
|
|
|
|
|
|
|
|
|
@ -63,8 +70,58 @@
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
HeightRequest="1"/>
|
|
|
|
|
|
|
|
|
|
<local:BalanceView
|
|
|
|
|
Grid.Row="2"/>
|
|
|
|
|
<!--<local:BalanceView
|
|
|
|
|
Grid.Row="2"
|
|
|
|
|
x:Name="balanceViewContainer"/>-->
|
|
|
|
|
|
|
|
|
|
<VerticalStackLayout Grid.Row="2">
|
|
|
|
|
<ListView ItemsSource="{Binding TransactionsList}"
|
|
|
|
|
SelectionMode="None">
|
|
|
|
|
|
|
|
|
|
<ListView.ItemTemplate>
|
|
|
|
|
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
|
|
|
|
|
<ViewCell>
|
|
|
|
|
|
|
|
|
|
<Grid
|
|
|
|
|
ColumnDefinitions="40, 3*, *"
|
|
|
|
|
Margin="20, 5, 20, 5"
|
|
|
|
|
HorizontalOptions="Fill">
|
|
|
|
|
|
|
|
|
|
<Grid.GestureRecognizers>
|
|
|
|
|
<TapGestureRecognizer
|
|
|
|
|
Tapped="Transaction_Clicked"
|
|
|
|
|
NumberOfTapsRequired="1" />
|
|
|
|
|
|
|
|
|
|
</Grid.GestureRecognizers>
|
|
|
|
|
|
|
|
|
|
<Label
|
|
|
|
|
Text="{Binding Date, StringFormat='{0:ddd dd MMM yyyy}'}"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
VerticalOptions="Center"
|
|
|
|
|
Margin="10, 0, 0, 0"/>
|
|
|
|
|
|
|
|
|
|
<Label
|
|
|
|
|
Text="{Binding Sum, StringFormat='{0} €'}"
|
|
|
|
|
Grid.Column="2"
|
|
|
|
|
TextColor="{Binding Type, Converter={StaticResource bool2ColorConverters}}"
|
|
|
|
|
VerticalOptions="Center"
|
|
|
|
|
HorizontalOptions="End"
|
|
|
|
|
Margin="0, 0, 20, 0"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
</ViewCell>
|
|
|
|
|
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
|
|
|
|
|
</ListView.ItemTemplate>
|
|
|
|
|
|
|
|
|
|
</ListView>
|
|
|
|
|
|
|
|
|
|
</VerticalStackLayout>
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
</ContentPage>
|
|
|
|
|