public App(APIClient apiClient) { // Create Custom Navigation Page var homePage = new HomePage (); api = apiClient; homePage.api = api; homePage.testAPI (); var navigationPage = new MainNavigationPage(homePage); navigationPage.BarBackgroundColor = Color.FromHex("1c6cb6"); navigationPage.BarTextColor = Color.White; // The root page of your application MainPage = navigationPage; }
public AlertNavigationPage (APIClient api) { this.api = api; var alertTypePage = new AlertTypePage (this); this.PushAsync (alertTypePage, false); var cancelButton = new ToolbarItem { Text = "CANCEL", Order = ToolbarItemOrder.Primary, Command = new Command (() => this.cancelAlert() ) }; ToolbarItems.Add (cancelButton); }