From c4d3ed204303ee36bbd48746bcf63e29edc09d9f Mon Sep 17 00:00:00 2001 From: Alexandre Agostinho Date: Wed, 7 Jun 2023 15:58:40 +0200 Subject: [PATCH] rm IsConnected, use converter insted - bug: no view update on connection --- MCTG/Views/ContentPages/Home.xaml | 2 +- MCTG/Views/ContentPages/Home.xaml.cs | 10 +-- MCTG/Views/ContentPages/Login.xaml | 37 ++++++---- MCTG/Views/ContentPages/Login.xaml.cs | 19 ++++- MCTG/Views/ContentPages/MyPosts.xaml | 1 - MCTG/Views/ContentPages/MyProfil.xaml | 1 - MCTG/Views/ContentViews/ContainerBase.xaml.cs | 72 +++++++++---------- MCTG/Views/ContentViews/ContainerFlyout.xaml | 8 +-- .../ContentViews/ContainerFlyout.xaml.cs | 10 --- 9 files changed, 87 insertions(+), 73 deletions(-) diff --git a/MCTG/Views/ContentPages/Home.xaml b/MCTG/Views/ContentPages/Home.xaml index 2973af4..cb52f82 100644 --- a/MCTG/Views/ContentPages/Home.xaml +++ b/MCTG/Views/ContentPages/Home.xaml @@ -30,7 +30,7 @@ ImageSource="home_icon.png" Style="{StaticResource button1}" Clicked="Suggestions_Clicked" - IsVisible="{Binding IsConnected, Source={x:Reference container_base}}"/> + IsVisible="{Binding Master.User.CurrentConnected, Source={x:Reference homepage}, Converter={toolkit:IsNotNullConverter}}"/>