From 63c749fcfcd43b7cd3fb08ad03fabf7e5df14fa1 Mon Sep 17 00:00:00 2001 From: Alexandre Agostinho Date: Sun, 9 Apr 2023 03:37:03 +0200 Subject: [PATCH] :bug: fix the is-user-connected binder + end review code. close #12 --- MCTG/Views/App.xaml.cs | 7 +++---- MCTG/Views/ContainerBase.xaml.cs | 2 +- MCTG/Views/ContainerFlyout.xaml | 7 ++++--- MCTG/Views/ContainerFlyout.xaml.cs | 7 +------ MCTG/Views/Home.xaml | 5 +++-- MCTG/Views/MyPosts.xaml | 3 +-- 6 files changed, 13 insertions(+), 18 deletions(-) diff --git a/MCTG/Views/App.xaml.cs b/MCTG/Views/App.xaml.cs index b1bac15..f129f5e 100644 --- a/MCTG/Views/App.xaml.cs +++ b/MCTG/Views/App.xaml.cs @@ -28,11 +28,10 @@ namespace Views #endif }); - MainPage = new Home(); - - - Application.Current.UserAppTheme = AppTheme.Dark; + /* - Comment(ctrl-k + ctrl-c)/Uncomment(ctrl-k + ctrl-u) to change page - */ + MainPage = new Home(); + //MainPage = new MyPosts(); } } } diff --git a/MCTG/Views/ContainerBase.xaml.cs b/MCTG/Views/ContainerBase.xaml.cs index 67f44f4..422f0d5 100644 --- a/MCTG/Views/ContainerBase.xaml.cs +++ b/MCTG/Views/ContainerBase.xaml.cs @@ -29,7 +29,7 @@ public partial class ContainerBase : ContentView // Bind IsNotConnected public static readonly BindableProperty IsNotConnectedProperty = - BindableProperty.Create("IsNotConnected", typeof(bool), typeof(Button), false); + BindableProperty.Create("IsNotConnected", typeof(bool), typeof(Button), true); public bool IsNotConnected { diff --git a/MCTG/Views/ContainerFlyout.xaml b/MCTG/Views/ContainerFlyout.xaml index 7f15aa4..77a742e 100644 --- a/MCTG/Views/ContainerFlyout.xaml +++ b/MCTG/Views/ContainerFlyout.xaml @@ -2,6 +2,7 @@ @@ -30,8 +31,8 @@