Add back to show menu on home
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -27,5 +27,12 @@ namespace PlantBox.Client.Forms
|
||||
|
||||
await Navigation.PushAsync(new PlantPage(plant));
|
||||
}
|
||||
|
||||
protected override bool OnBackButtonPressed()
|
||||
{
|
||||
App.MasterPage.IsPresented = true;
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user