public void ParametersParsedFromQueryWithNoQuestionMarkDelimiter() { var parameters = new NavigationParameters(_uriWithNoQuestionMarkDelimiter); Assert.Equal(2, parameters.Count); Assert.True(parameters.ContainsKey("id")); Assert.Equal("3", parameters["id"]); Assert.True(parameters.ContainsKey("name")); Assert.Equal("brian", parameters["name"]); }
public void OnNavigatedTo(NavigationParameters parameters) { Debug.WriteLine("-------------MainPageViewModel----------OnNavigatedTo <--"); if (parameters.ContainsKey("title")) Title = (string)parameters["title"] + " and Prism"; }
public override async void OnNavigatedTo(NavigationParameters parameters) { if (parameters?.ContainsKey("product") == true) { Product = (ProductModel)parameters["product"]; Product.ProductDetail = await productService.GetProductDetailAsync(App.SelectedLanguage.ID, product.ProductId); Product.Documents = await productService.GetAllDocumentsAsync(App.SelectedLanguage.ID, Product.ProductId); Videos = await youtubeService.GetAllAsync(Product.Name); } Sections = new ObservableCollection <ContentView>(); Sections.Add(new ProductDetailTab() { BindingContext = this }); Sections.Add(new ProductDocumentTab() { BindingContext = this }); Sections.Add(new ProductVideosTab() { BindingContext = this }); Sections.Add(new ContentView() { Content = new Label() { Text = "Suggestions??" } }); }
public override void OnNavigatingTo(NavigationParameters parameters) { if (parameters.ContainsKey("randomlist")) { this.RandomList = (RandomList)parameters["randomlist"]; this.Title = this.RandomList.Name; } }
public async void OnNavigatedTo(NavigationParameters parameters) { if (parameters.ContainsKey("AutoNext")) { var fooPage = parameters["AutoNext"] as string; await _navigationService.NavigateAsync($"{fooPage}?AutoNext=Page3Page"); } }
public async override void OnNavigatedTo(NavigationParameters parameters) { if (parameters.ContainsKey("Order")) { PreOrder = parameters["Order"] as Order; await SetupViewFields(); } }
public async void OnNavigatedTo(NavigationParameters parameters) { if (parameters.ContainsKey("title")) { Title = (string)parameters["title"] + " and Prism"; } await Audio.Manager.PlaySound("Drop.mp3"); }
public void OnNavigatedTo(NavigationParameters parameters) { if (parameters.ContainsKey("CurrStudent")) { CurrStudent = parameters["CurrStudent"] as Student; Title = $"{CurrStudent.Name}的資料"; } }
public void OnNavigatedTo(NavigationParameters parameters) { if (parameters.ContainsKey("創業空間Selected")) { var foo創業空間Selected = parameters["創業空間Selected"] as 創業空間NodeViewModel; 系統初始化(foo創業空間Selected); } }
public void OnNavigatedTo(NavigationParameters parameters) { if (parameters.ContainsKey("par1")) { string par1 = parameters["par1"].ToString(); string par2 = parameters["par2"].ToString(); } }
public void OnNavigatingTo(NavigationParameters parameters) { if (parameters.ContainsKey("item")) { Item = parameters.GetValue <ItemViewModel>("item"); Title = item?.Text; } }
public void OnNavigatedTo(NavigationParameters parameters) { if (parameters.ContainsKey("help")) { page = (string)parameters["help"]; InitLabels(); } }
public void OnNavigatedTo(NavigationParameters parameters) { if (parameters.ContainsKey("id")) { var id = (int)parameters["id"]; GetOneAsync(id); } }
public override void OnNavigatingTo(NavigationParameters parameters) { if (parameters.ContainsKey("model")) { backupModel = (string)parameters["model"]; Model = JsonConvert.DeserializeObject <SellerProfileModel>(backupModel); } }
public override void OnNavigatedTo(NavigationParameters parameters) { base.OnNavigatedTo(parameters); if (parameters.ContainsKey(string.Empty) && parameters.GetValue <IList <Report> >(string.Empty) is IList <Report> reportList) { ReportList.Reset(reportList); } }
public async void OnNavigatedTo(NavigationParameters parameters) { if (parameters.ContainsKey("ID")) { Id = Convert.ToInt64(parameters["ID"] as string); await ViewModelInit(); } }
public void OnNavigatedTo(NavigationParameters parameters) { if (parameters.ContainsKey("title")) { Title = (string)parameters["title"] + " and Prism"; } ButtonText = "Go to next page"; }
public static TToken ExtractNavigationToken <TToken>(this NavigationParameters parameters) where TToken : INavigationToken { if (parameters.ContainsKey(tokenKey) && parameters[tokenKey] is TToken) { return((TToken)parameters[tokenKey]); } return(default(TToken)); }
public async void OnNavigatedTo(NavigationParameters parameters) { if (parameters.GetNavigationMode() == NavigationMode.New || parameters.ContainsKey(NavigationParams.PageRefresh)) { await RefreshDashboard(); } }
public override void OnNavigatedTo(NavigationParameters parameters) { if (parameters.ContainsKey("value")) // переход со страницы CalcPage { string par = (string)parameters["value"]; Value.Value = par; } if (parameters.ContainsKey("edit")) // переход со страницы ConstantsPage по команде Edit { Constant par = (Constant)parameters["edit"]; currentId = par.Id; Value.Value = par.Value.ToString(); Name.Value = par.Name; Note = par.Note; } }
public void OnNavigatedTo(NavigationParameters parameters) { if (parameters.ContainsKey("Auto")) { var isAuto = parameters["Auto"] as string; _navigationService.NavigateAsync(isAuto); } }
public void OnNavigatingTo(NavigationParameters parameters) { //NavigationParameters nada mais é do que um Dictionary<string, object> if (parameters.ContainsKey("parametro")) { this.Titulo = parameters["parametro"].ToString(); } }
public override async void OnNavigatedTo(NavigationParameters parameters) { if (parameters.ContainsKey("ScannedItem")) { var itemResult = (string)parameters["ScannedItem"]; await _dialogService.DisplayAlertAsync("Result", $"You have scanned {itemResult}", "Close"); } }
public void OnNavigatingTo(NavigationParameters parameters) { if (parameters.ContainsKey("ThreadViewData")) { ThreadDetails = (ThreadViewData)parameters["ThreadViewData"]; } GetPostsCommand.Execute(null); }
public void OnNavigatingTo(NavigationParameters parameters) { if (parameters.ContainsKey("AdoptionItemInfo")) { adoptionItem = (Pet)parameters["AdoptionItemInfo"]; getGeoLoc(); } }
public void OnNavigatingTo(NavigationParameters parameters) { if (parameters.ContainsKey("NavFromPage")) { var pageFrom = (string)parameters["NavFromPage"]; PageFromText = $"Navigated from {pageFrom}"; } }
public void OnNavigatedTo(NavigationParameters parameters) { if (parameters.ContainsKey("title")) { Title = (string)parameters["title"] + " and Prism"; } Title += $" (From {_sayHello.Hello()})"; }
public override void OnNavigatedTo(NavigationParameters parameters) { base.OnNavigatedTo(parameters); if (parameters.ContainsKey("Usuario")) { UsuarioSelecionado = parameters.GetValue <Usuario>("Usuario"); } }
public void OnNavigatedTo(NavigationParameters parameters) { if (parameters.ContainsKey("model")) { RecievedBookingType = (BookingTypeItem)parameters["model"]; RefreshList(); } }
public override void OnNavigatedTo(NavigationParameters parameters) { base.OnNavigatedTo(parameters); if (parameters.ContainsKey("event")) { Event = (EventsModel)parameters["event"]; } }
public void OnNavigatedTo(NavigationParameters parameters) { if (parameters.ContainsKey("tarefaId")) { Tarefa = ApiCaller.GetTarefa((int)parameters["tarefaId"]); Nome = Tarefa.Nome; } }
public void OnNavigatedTo(NavigationParameters parameters) { Debug.WriteLine($"主頁面 進入到 OnNavigatedTo"); if (parameters.ContainsKey("title")) { Title = (string)parameters["title"] + " and Prism"; } }
public bool CanNavigate(NavigationParameters parameters) { OnConfirmNavigationCalled = true; if (parameters.ContainsKey("canNavigate")) return (bool)parameters["canNavigate"]; return true; }
public Task<bool> CanNavigateAsync(NavigationParameters parameters) { return Task.Run(() => { OnConfirmNavigationCalled = true; if (parameters.ContainsKey("canNavigate")) return (bool)parameters["canNavigate"]; return true; }); }
public void OnNavigatedTo(NavigationParameters parameters) { if (parameters.ContainsKey("id")) Title = string.Format("ViewA : {0}", (string)parameters["id"]); }
public void OnNavigatedTo(NavigationParameters parameters) { if (parameters.ContainsKey("message")) Message = (string)parameters["message"] + "and Prism"; }
public void OnNavigatedTo(NavigationParameters parameters) { if (parameters.ContainsKey("title")) Title = (string)parameters["title"] + " and Prism"; }
public void OnNavigatedTo(NavigationParameters parameters) { if (parameters.ContainsKey("timestamp")) TimeStamp = (DateTime)parameters["timestamp"]; }