diff --git a/src/Banquale/Banquale/AppShell.xaml b/src/Banquale/Banquale/AppShell.xaml index f3a2300..a1adc74 100644 --- a/src/Banquale/Banquale/AppShell.xaml +++ b/src/Banquale/Banquale/AppShell.xaml @@ -18,6 +18,7 @@ Title="Solde" ContentTemplate="{DataTemplate balance:BalancePage}" Route="balance" + BindingContextChanged="ShellContent_BindingContextChanged" Icon="{StaticResource HomeIcon}"/> (App.Current as App).MyManager; + + public AppShell() { InitializeComponent(); - RegisterRoutes(); + //RegisterRoutes(); } private void RegisterRoutes() { Routing.RegisterRoute("balance/categorydetails", typeof(CategoryPage)); - Routing.RegisterRoute("balance/newpagedetails", typeof(NewPage1)); Routing.RegisterRoute("menu/requestdetails", typeof(RequestPage)); Routing.RegisterRoute("menu/ribdetails", typeof(RibPage)); Routing.RegisterRoute("menu/transferdetails", typeof(TransferPage)); @@ -23,4 +27,8 @@ public partial class AppShell : Shell Routing.RegisterRoute("consultant/createcustomer", typeof(CreateCustomerPage)); } + void ShellContent_BindingContextChanged(System.Object sender, System.EventArgs e) + { + BindingContext = Mgr.SelectedAccount; + } } \ No newline at end of file diff --git a/src/Banquale/Banquale/Views/Balance/BalancePage.xaml b/src/Banquale/Banquale/Views/Balance/BalancePage.xaml index d123106..f756e23 100644 --- a/src/Banquale/Banquale/Views/Balance/BalancePage.xaml +++ b/src/Banquale/Banquale/Views/Balance/BalancePage.xaml @@ -22,12 +22,6 @@ RowDefinitions="auto, 35, *" ColumnDefinitions="250, auto"> - - - -