public App() { // The root page of your application var homePage = new ViewMenu.View(); this.MainPage = new NavigationPage(homePage); InitializeData(); _messagebus.Subscribe(ViewMenu.Messages.REQUEST_EDIT, async obj => { await MainPage.Navigation.PushAsync(new EditContent.View(obj as Content), animated: true); }); _messagebus.Subscribe("REQUEST_PREVIOUS_VIEW", async obj => await MainPage.Navigation.PopAsync(animated: true)); }
public App() { InitializeComponent(); // _databaseFactory.PromiseDBs(); _ioFactory.PromiseFileReader(); _profile = new ProfileServer().GetProfile(); _autonomy.Activate(); // The root page of your application var homePage = new ViewMenu.View(); // SearchCustomers.View(); MainPage = new NavigationPage(homePage) { BarBackgroundColor = Color.Transparent }; MainPage.Padding = new Thickness(5); _viewFactory.Promise(MainPage); }