public MatchesPage() { NavigationPage.SetHasNavigationBar(this, true); InitializeComponent(); NavigationPage.SetBackButtonTitle(this, "Back"); On <Xamarin.Forms.PlatformConfiguration.iOS>().SetUseSafeArea(true); }
public SearchPage() { NavigationPage.SetBackButtonTitle(this, ""); BindingContext = viewmodel = new SearchPageViewModel(); InitializeComponent(); On <Xamarin.Forms.PlatformConfiguration.iOS>().SetUseSafeArea(true); GetCategories(); SearchBar.SearchCommand = new Command(async() => { var locations = dataService.SearchLocations(SearchBar.Text); var locationsViewModel = new ResultsViewModel { Locations = locations }; await Navigation.PushAsync(new LocationsPage(locationsViewModel)); }); }
public TGBasePage() { InitializeComponent(); if (Init.ClearBackButtonTextOnAllPages) { NavigationPage.SetBackButtonTitle(this, string.Empty); } // set default busy overlay content IsBusyOverlayContent = Init.CustomActivityIndicator; // get value for SafeAreaInsets if (Device.RuntimePlatform == Device.iOS) { SafeAreaInsets = On <Xamarin.Forms.PlatformConfiguration.iOS>().SafeAreaInsets(); // 20 or 40 px depending on phone type } else { SafeAreaInsets = new Thickness(); // we don't care about this on Android } }