redesign navigation on the app

pull/46/head
Antoine PEREDERII 2 years ago
parent 87ab80e1c3
commit deaa284027

@ -359,7 +359,7 @@
<Style TargetType="Shell" ApplyToDerivedTypes="True"> <Style TargetType="Shell" ApplyToDerivedTypes="True">
<Setter Property="Shell.BackgroundColor" Value="{StaticResource Primary}" /> <Setter Property="Shell.BackgroundColor" Value="{StaticResource Primary}" />
<Setter Property="Shell.ForegroundColor" Value="{StaticResource Gray900}" /> <Setter Property="Shell.ForegroundColor" Value="{StaticResource Gray900}" />
<Setter Property="Shell.TitleColor" Value="{StaticResource White}" /> <Setter Property="Shell.TitleColor" Value="{StaticResource Gray900}" />
<Setter Property="Shell.DisabledColor" Value="{StaticResource Gray200}" /> <Setter Property="Shell.DisabledColor" Value="{StaticResource Gray200}" />
<Setter Property="Shell.UnselectedColor" Value="{StaticResource Gray200}" /> <Setter Property="Shell.UnselectedColor" Value="{StaticResource Gray200}" />
<Setter Property="Shell.NavBarHasShadow" Value="False" /> <Setter Property="Shell.NavBarHasShadow" Value="False" />

@ -18,6 +18,12 @@
Grid.Row="0" Grid.Row="0"
Margin="30"> Margin="30">
<Grid.GestureRecognizers>
<TapGestureRecognizer
Tapped="Balance_Clicked"
NumberOfTapsRequired="1" />
</Grid.GestureRecognizers>
<Label <Label
Text="Compte Professionnel" Text="Compte Professionnel"
HorizontalOptions="Center" HorizontalOptions="Center"
@ -52,8 +58,7 @@
<Label Text="€" <Label Text="€"
Grid.Column="2"/> Grid.Column="2"/>
</Grid> </Grid>
</Grid> </Grid>
@ -65,10 +70,6 @@
Direction="Row" Direction="Row"
Wrap="Wrap"> Wrap="Wrap">
<Button Text="NewPage1"
Clicked="OnButtonClicked"
MinimumWidthRequest="250"/>
<local:BalanceView/> <local:BalanceView/>
<local:BalanceView/> <local:BalanceView/>
<local:BalanceView/> <local:BalanceView/>

@ -14,9 +14,9 @@ public partial class BalancePage : ContentPage
//BindingContext = new Account(999, "Tatouille", "FR76 9161 9581 6296 8415 2361 004"); //BindingContext = new Account(999, "Tatouille", "FR76 9161 9581 6296 8415 2361 004");
} }
public async void OnButtonClicked(object sender, EventArgs e) public async void Balance_Clicked(object sender, EventArgs e)
{ {
await Shell.Current.Navigation.PushAsync(new NewPage1()); await Shell.Current.Navigation.PushAsync(new NewPage1());
} }
} }

@ -10,6 +10,6 @@ public partial class BalanceView : ContentView
public async void OnButtonClicked(object sender, EventArgs e) public async void OnButtonClicked(object sender, EventArgs e)
{ {
await Shell.Current.Navigation.PushAsync(new CategoryPage()); await Shell.Current.Navigation.PushAsync(new TransactionsPage());
} }
} }

@ -26,7 +26,7 @@ public partial class NewPage1 : ContentPage
public async void ArrowBack(object sender, EventArgs e) public async void ArrowBack(object sender, EventArgs e)
{ {
await Shell.Current.GoToAsync("//balance"); await Shell.Current.Navigation.PopAsync();
} }
} }

@ -4,7 +4,7 @@
x:Class="Banquale.Views.TransactionsPage" x:Class="Banquale.Views.TransactionsPage"
Title="TransactionsPage"> Title="TransactionsPage">
<Grid RowDefinitions="2*, *, 0*, *, 0*, *, *, *, *, *, *"> <!--<Grid RowDefinitions="2*, *, 0*, *, 0*, *, *, *, *, *, *">
<Grid Grid.Row="1" ColumnDefinitions="2*, *, 2*"> <Grid Grid.Row="1" ColumnDefinitions="2*, *, 2*">
<Label Grid.Column="1" <Label Grid.Column="1"
@ -34,5 +34,59 @@
<Button Grid.Column="1" Text="Faire opposition"/> <Button Grid.Column="1" Text="Faire opposition"/>
</Grid> </Grid>
</Grid> </Grid>-->
<VerticalStackLayout VerticalOptions="Center">
<Label
Grid.Column="1"
Text="Prix"
HorizontalOptions="Center"
FontSize="Large"
Margin="0, 0, 0, 50"/>
<Label
Grid.Column="1"
Text="poiuytreza"
HorizontalOptions="Center"
Margin="0, 50, 0, 50"/>
<Button
Grid.Column="1"
Text="Categorie"
FontSize="Medium"
Margin="0, 50, 0, 50"
Clicked="Categ_Clicked"/>
<Grid RowDefinitions="auto, *, auto"
ColumnDefinitions="*, auto, *"
Margin="0, 50, 0, 50">
<Label
Grid.Row="0"
Grid.Column="1"
Text=" Paiment par carte &#x0a;4859 **** **** 9985"
VerticalOptions="Center"/>
<BoxView
Grid.Row="1"
Grid.Column="1"
HorizontalOptions="FillAndExpand"
HeightRequest="1.3"
Margin="0, 5, 0, 5"/>
<Label
Grid.Row="2"
Grid.Column="1"
Text="En date du 15/06/2023"/>
</Grid>
<Button
Grid.Column="1"
Text="Faire opposition"
Margin="0, 50, 0, 0"
Clicked="Objection_Clicked"/>
</VerticalStackLayout>
</ContentPage> </ContentPage>

@ -1,3 +1,4 @@
using Banquale.Views.Category;
namespace Banquale.Views; namespace Banquale.Views;
public partial class TransactionsPage : ContentPage public partial class TransactionsPage : ContentPage
@ -6,4 +7,15 @@ public partial class TransactionsPage : ContentPage
{ {
InitializeComponent(); InitializeComponent();
} }
async void Categ_Clicked(System.Object sender, System.EventArgs e)
{
await Shell.Current.Navigation.PushAsync(new CategoryPage());
}
async void Objection_Clicked(System.Object sender, System.EventArgs e)
{
await Shell.Current.Navigation.PopAsync();
}
} }

@ -116,10 +116,12 @@
<Label Text="M BOURAUD DESCHAMPS" /> <Label Text="M BOURAUD DESCHAMPS" />
<Button Text="Télécharger le RIB" <!--<Button Text="Télécharger le RIB"
HeightRequest="150" HeightRequest="150"
WidthRequest="300" /> WidthRequest="300" />
It's not functionnal today -->
</VerticalStackLayout> </VerticalStackLayout>
</ContentPage> </ContentPage>

Loading…
Cancel
Save