private async void SearchCommandHandler() { var result = new SearchSuggestModel(); if (SelectedItem != null) { result.KeyWords = SelectedItem.Name; if (SelectedItem.Location != null) { result.Lat = SelectedItem.Location.Lat; result.Lng = SelectedItem.Location.Lng; } } else { result.KeyWords = SearchKeyWords; } //Messenger.Default.Send(result, MessengeToken.SearchCallBack); //await IocHelper.GetNavigationPage().PopAsync(); await IocHelper.GetNavigationPage().PushAsync(new BaiduMapView(result)); }
private async void SearchEntryOnFocused(object sender, FocusEventArgs focusEventArgs) { var keyWords = ((Entry)sender).Text; var navigationPage = IocHelper.GetNavigationPage(); await navigationPage.PushAsync(new SearchSuggestView(keyWords)); }
private async void CallBack() { PositionHelper.Address = $"{_searchEntry.Text}{_houseNumber.Text}"; Messenger.Default.Send(PositionHelper.Address, MessengeToken.SearchCallBack); await IocHelper.GetNavigationPage().PopAsync(); await IocHelper.GetNavigationPage().PopAsync(); }
private async void GoToCommandHandler(Type parm) { var navigationPage = IocHelper.GetNavigationPage(); if (parm == typeof(CarouselPageView)) { await navigationPage.PushAsync(new CarouselPageView()); } else if (parm == typeof(CarouselImageView)) { await navigationPage.PushAsync(new CarouselImageView()); } else if (parm == typeof(BaiduMapView)) { //await navigationPage.PushAsync(new BaiduMapView()); } else if (parm == typeof(AreaSelectedView)) { await navigationPage.PushAsync(new AreaSelectedView()); } }
private async void GoToCommandHandler(Type parm) { var navigationPage = IocHelper.GetNavigationPage(); if (parm == typeof(AreaSelectedView)) { await navigationPage.PushAsync(new AreaSelectedView()); } else if (parm == typeof(RegisterAddressView)) { await navigationPage.PushAsync(new RegisterAddressView()); } //else if (parm == typeof(BaiduMapView)) //{ // await navigationPage.PushAsync(new BaiduMapView()); //} //else if (parm == typeof(AreaSelectedView)) //{ // await navigationPage.PushAsync(new AreaSelectedView()); //} }
public void SelectedAddressCommandHandler() { IocHelper.GetNavigationPage().PushAsync(new SearchSuggestView(Address, _position)); }