Add back to show menu on home

This commit is contained in:
2019-03-26 18:06:53 +01:00
parent 1fbcaacd63
commit c86e649b4a
2 changed files with 10 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ namespace PlantBox.Client
public partial class App : Application
{
public static SettingsViewModel Settings { get; private set; }
public static MainPage MasterPage { get; private set; }
public App()
{
@@ -24,7 +25,8 @@ namespace PlantBox.Client
Locale.Culture = Settings.Language;
}
MainPage = new MainPage();
MasterPage = new MainPage();
MainPage = MasterPage;
}
protected override void OnStart()

View File

@@ -27,5 +27,12 @@ namespace PlantBox.Client.Forms
await Navigation.PushAsync(new PlantPage(plant));
}
protected override bool OnBackButtonPressed()
{
App.MasterPage.IsPresented = true;
return true;
}
}
}