🎨 🔧 Add views folders in balancepage, categorypage and menutransferpage

pull/42/head
Antoine PEREDERII 2 years ago
parent b5f480b4ac
commit 21aea21926

@ -4,6 +4,8 @@
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:views="clr-namespace:Banquale.Views" xmlns:views="clr-namespace:Banquale.Views"
xmlns:balance="clr-namespace:Banquale.Views.Balance"
xmlns:transfer="clr-namespace:Banquale.Views.Transfer"
Shell.FlyoutBehavior="Disabled"> Shell.FlyoutBehavior="Disabled">
@ -14,13 +16,13 @@
<ShellContent <ShellContent
Title="Solde" Title="Solde"
ContentTemplate="{DataTemplate views:BalancePage}" ContentTemplate="{DataTemplate balance:BalancePage}"
Route="balance" Route="balance"
Icon="home.png"/> Icon="home.png"/>
<ShellContent <ShellContent
Title="Transactions" Title="Transactions"
ContentTemplate="{DataTemplate views:MenuTransferPage}" ContentTemplate="{DataTemplate transfer:MenuTransferPage}"
Route="menu" Route="menu"
Icon="transactions.png"/> Icon="transactions.png"/>

@ -1,5 +1,6 @@
using Banquale.Views; using Banquale.Views;
using Banquale.Views.Category;
using Banquale.Views.Transfer;
namespace Banquale; namespace Banquale;
public partial class AppShell : Shell public partial class AppShell : Shell
@ -8,7 +9,7 @@ public partial class AppShell : Shell
{ {
InitializeComponent(); InitializeComponent();
Routing.RegisterRoute("balance/categorydetails", typeof(CategoryPage)); Routing.RegisterRoute("balance/categorydetails", typeof(CategoryPage));
Routing.RegisterRoute("newpagedetails", typeof(NewPage1)); Routing.RegisterRoute("balance/newpagedetails", typeof(NewPage1));
Routing.RegisterRoute("menu/requestdetails", typeof(RequestPage)); Routing.RegisterRoute("menu/requestdetails", typeof(RequestPage));
Routing.RegisterRoute("menu/ribdetails", typeof(RibPage)); Routing.RegisterRoute("menu/ribdetails", typeof(RibPage));
Routing.RegisterRoute("menu/transferdetails", typeof(TransferPage)); Routing.RegisterRoute("menu/transferdetails", typeof(TransferPage));

@ -66,6 +66,8 @@
<None Remove="Resources\Images\helpIcon.svg" /> <None Remove="Resources\Images\helpIcon.svg" />
<None Remove="Stub\" /> <None Remove="Stub\" />
<None Remove="DataContractPersistance\" /> <None Remove="DataContractPersistance\" />
<None Remove="Views\Balance\" />
<None Remove="Views\Category\" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<MauiXaml Remove="Resources\Images\Images.xaml" /> <MauiXaml Remove="Resources\Images\Images.xaml" />
@ -78,5 +80,7 @@
<Folder Include="Persistances\" /> <Folder Include="Persistances\" />
<Folder Include="Stub\" /> <Folder Include="Stub\" />
<Folder Include="DataContractPersistance\" /> <Folder Include="DataContractPersistance\" />
<Folder Include="Views\Balance\" />
<Folder Include="Views\Category\" />
</ItemGroup> </ItemGroup>
</Project> </Project>

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:Banquale.Views" xmlns:local="clr-namespace:Banquale.Views.Balance"
xmlns:model="clr-namespace:Banquale.Model" xmlns:model="clr-namespace:Banquale.Model"
x:Class="Banquale.Views.BalancePage" x:Class="Banquale.Views.Balance.BalancePage"
Title="BalancePage" Title="BalancePage"
Shell.NavBarIsVisible="False"> Shell.NavBarIsVisible="False">

@ -1,5 +1,5 @@
using Banquale.Model; using Banquale.Model;
namespace Banquale.Views; namespace Banquale.Views.Balance;
public partial class BalancePage : ContentPage public partial class BalancePage : ContentPage

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Banquale.Views.BalanceView"> x:Class="Banquale.Views.Balance.BalanceView">
<VerticalStackLayout> <VerticalStackLayout>
<BoxView BackgroundColor="Black" <BoxView BackgroundColor="Black"
HorizontalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"

@ -1,4 +1,4 @@
namespace Banquale.Views; namespace Banquale.Views.Balance;
public partial class BalanceView : ContentView public partial class BalanceView : ContentView
{ {

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Banquale.Views.CategoryPage" x:Class="Banquale.Views.Category.CategoryPage"
xmlns:local="clr-namespace:Banquale.Views" xmlns:local="clr-namespace:Banquale.Views.Category"
Title="CategoryPage" Title="CategoryPage"
BackgroundColor="White"> BackgroundColor="White">

@ -1,4 +1,4 @@
namespace Banquale.Views; namespace Banquale.Views.Category;
public partial class CategoryPage : ContentPage public partial class CategoryPage : ContentPage
{ {

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Banquale.Views.CategoryView"> x:Class="Banquale.Views.Category.CategoryView">
<VerticalStackLayout> <VerticalStackLayout>
<BoxView HorizontalOptions="FillAndExpand" <BoxView HorizontalOptions="FillAndExpand"

@ -1,4 +1,4 @@
namespace Banquale.Views; namespace Banquale.Views.Category;
public partial class CategoryView : ContentView public partial class CategoryView : ContentView
{ {

@ -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 Navigation.PopAsync(); await Shell.Current.GoToAsync("//balance");
} }
} }

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Banquale.Views.MenuTransferPage" x:Class="Banquale.Views.Transfer.MenuTransferPage"
Shell.NavBarIsVisible="False"> Shell.NavBarIsVisible="False">
<Grid RowDefinitions="auto, auto" <Grid RowDefinitions="auto, auto"

@ -1,4 +1,4 @@
namespace Banquale.Views; namespace Banquale.Views.Transfer;
public partial class MenuTransferPage : ContentPage public partial class MenuTransferPage : ContentPage
{ {

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Banquale.Views.RequestPage"> x:Class="Banquale.Views.Transfer.RequestPage">
<VerticalStackLayout VerticalOptions="Center"> <VerticalStackLayout VerticalOptions="Center">

@ -1,5 +1,5 @@
using Banquale.Model; using Banquale.Model;
namespace Banquale.Views; namespace Banquale.Views.Transfer;
public partial class RequestPage : ContentPage public partial class RequestPage : ContentPage
{ {

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Banquale.Views.RibPage"> x:Class="Banquale.Views.Transfer.RibPage">
<VerticalStackLayout> <VerticalStackLayout>

@ -1,4 +1,4 @@
namespace Banquale.Views; namespace Banquale.Views.Transfer;
public partial class RibPage : ContentPage public partial class RibPage : ContentPage
{ {

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Banquale.Views.TransferPage"> x:Class="Banquale.Views.Transfer.TransferPage">
<VerticalStackLayout VerticalOptions="Center"> <VerticalStackLayout VerticalOptions="Center">

@ -1,5 +1,5 @@
using Banquale.Model; using Banquale.Model;
namespace Banquale.Views; namespace Banquale.Views.Transfer;
public partial class TransferPage : ContentPage public partial class TransferPage : ContentPage
{ {
Loading…
Cancel
Save