public override async void OnNavigatedTo(INavigationParameters parameters) { if (parameters.ContainsKey("LoadAtStartup")) { await LoadLastOnStartup(); } if (parameters.ContainsKey("SelectedCategory")) { await CategoryUserSelectCallbackAsync((Category)parameters["SelectedCategory"]); } if (parameters.ContainsKey("SearchRecord")) { if (parameters["SearchRecord"] is AdvertSearch advertSearch) { await SearchRecordCallbackAsync(advertSearch); } } }
public override void OnNavigatedTo(INavigationParameters parameters) { base.OnNavigatedTo(parameters); if (parameters != null) { if (parameters.ContainsKey(nameof(VoteModel))) { Vote = (VoteModel)parameters[nameof(VoteModel)]; } } }
public override async void OnNavigatedTo(INavigationParameters parameters) { base.OnNavigatedTo(parameters); localDbTeams = await localDbService.GetAllTeamsAsync(); if (parameters.ContainsKey("id")) { FavoriteTeam = localDbTeams.First(t => t.Id == (int)parameters["id"]).Name; } }
public void OnNavigatedTo(INavigationParameters parameters) { if (parameters.ContainsKey("id")) { Debug.WriteLine("Id: " + parameters["id"]); } var path = this.navigationService.GetNavigationUriPath(); Debug.WriteLine("Current path: " + path); }
public override void OnNavigatedTo(INavigationParameters parameters) { base.OnNavigatedTo(parameters); if (parameters.ContainsKey("BillType")) { parameters.TryGetValue <BillTypeEnum>("BillType", out BillTypeEnum billType); BillType = billType; ((ICommand)Load)?.Execute(null); } // PaymentMethodPage 回传 if (parameters.ContainsKey("Selectes")) { parameters.TryGetValue <List <AccountingModel> >("Selectes", out List <AccountingModel> paymentmethods); if (paymentmethods != null) { this.PaymentMethods.Selectes = new ObservableCollection <AccountingModel>(paymentmethods); } } }
public void OnNavigatingTo(INavigationParameters parameters) { if (parameters.ContainsKey("LoginPage")) { var existingNumber = (string)parameters["LoginPage"]; setString("LoginMobileNumber", existingNumber); OTPMainLabel = AppResources.OTPMainLabel; lastNavigatedPage = "LoginPage"; } if (parameters.ContainsKey("ChangeNumber")) { var existingNumber = (string)parameters["ChangeNumber"]; setString("LoginMobileNumber", existingNumber); OTPMainLabel = AppResources.OTPMainLabel; HeaderText = AppResources.VerifyNumberTitle; lastNavigatedPage = "ChangeNumber"; } }
public override void OnNavigatedNewToAsync(INavigationParameters parameters) { base.OnNavigatedNewToAsync(parameters); if (parameters != null) { if (parameters.ContainsKey(ParamKey.CoinInWallet.ToString())) { AmountCoin = (double)parameters[ParamKey.CoinInWallet.ToString()]; } } }
public async override void OnNavigatedTo(INavigationParameters parameters) { if (parameters.ContainsKey("SearchParam")) { var SelectedMonth = parameters["SearchParam"] as string; if (!string.IsNullOrEmpty(SelectedMonth)) { await Search(SelectedMonth); } } }
public override void OnNavigatedTo(INavigationParameters parameters) { base.OnNavigatedTo(parameters); if (parameters.ContainsKey("ConversationId")) { parameters.TryGetValue("ConversationId", out string conversationId); this.ConversationId = conversationId.ToString(); ((ICommand)Load)?.Execute(null); } }
public bool CanNavigate(INavigationParameters parameters) { OnConfirmNavigationCalled = true; if (parameters.ContainsKey("canNavigate")) { return((bool)parameters["canNavigate"]); } return(true); }
public void OnNavigatingTo(INavigationParameters parameters) { if (parameters.GetNavigationMode() == NavigationMode.New) { if (parameters.ContainsKey("issue")) { Issue = ((Issue)parameters["issue"]); Title = Issue.Title; } } }
public override void OnNavigatedTo(INavigationParameters parameters) { if (parameters == null) { return; } if (parameters.ContainsKey("PageData")) { PageData.Replacement((PageData)parameters["PageData"]); } }
public override void OnNavigatingTo(INavigationParameters parameters) { string verifier_id = null; base.OnNavigatingTo(parameters); if (parameters.ContainsKey("VerifierId")) { verifier_id = (string)parameters["VerifierId"]; } LoadData(verifier_id); }
public void OnNavigatedTo(INavigationParameters parameters) { if (parameters.ContainsKey("IsForgotPassword")) { ForgotPassword = (bool)parameters["IsForgotPassword"]; } else { ForgotPassword = false; } }
public void OnNavigatedTo(INavigationParameters parameters) { Console.WriteLine("DEBUG - OnNavigatedTo() in ViewB"); Console.WriteLine("DEBUG - Estamos en {0}", _navigationService.GetNavigationUriPath()); if (parameters.ContainsKey("id")) { Title = (string)parameters["id"]; } }
public override void OnNavigatedTo(INavigationParameters parameters) { base.OnNavigatedTo(parameters); if (parameters.ContainsKey(nameof(TextItem))) { TextItem = (TextItem)parameters[nameof(Models.TextItem)]; RaisePropertyChanged(nameof(TextItem)); } }
public override void OnNavigatingTo(INavigationParameters parameters) { if (!isNavigated) { if (parameters.ContainsKey("currentPage")) { InitialAssignValueAsync(parameters.GetValue <int>("currentPage")); isNavigated = true; } } }
public async void OnNavigatedTo(INavigationParameters parameters) { AnalyticsService.TrackPageView(Constants.Analytics.Page_Menu); if (parameters != null && parameters.ContainsKey(Constants.App.NavParam_FromGettingStarted) && (bool)parameters[Constants.App.NavParam_FromGettingStarted] == true) { await DialogService.DisplayAlertAsync(Constants.Strings.Common_SettingWeightUnits_Title, string.Format(Constants.Strings.Common_SettingWeightUnits_Message, SettingsService.WeightUnit.ToSentenceUsageName()), Constants.Strings.Generic_OK); } }
/// <summary> /// 画面表示前呼び出し(このページ"に"画面遷移時に実行) /// </summary> public override void Initialize(INavigationParameters parameters) { base.Initialize(parameters); // NavigationParametersに同じキーのパラメーターを持っているかどうかの確認 if (parameters.ContainsKey(DetailPageViewModel.INPUT_KEY_SELECTED_PRODUCT)) { // プロパティに格納 this.SelectedProduct.Value = (ProductData)parameters[DetailPageViewModel.INPUT_KEY_SELECTED_PRODUCT]; } }
public void Initialize(INavigationParameters parameters) { if (parameters.ContainsKey("ListJobs")) { var ListJobs = parameters["ListJobs"] as ParametersSearch; Keyword = ListJobs.EntryKeyWord; IsRemote = ListJobs.IsRemote; Pagenumber = 0; LoadMore.Execute(null); } }
public override async void OnNavigatedTo(INavigationParameters parameters) { if (parameters.ContainsKey("selectedHeight")) { _selectedHeight = Convert.ToSingle(parameters["selectedHeight"]); } if (parameters.ContainsKey("selectedWeight")) { _selectedWeight = Convert.ToSingle(parameters["selectedWeight"]); } if (parameters.ContainsKey("selectedGender")) { _selectedGender = parameters["selectedGender"].ToString(); } AvatarImage = _selectedGender + ".png"; ComputeBMI(); }
public async void Initialize(INavigationParameters parameters) { if (parameters.ContainsKey("TeamID")) { Team_ID = $"{parameters["TeamID"]}"; } if (await this.HasInternet()) { TeamRoster = new ObservableCollection <Row>(await ApiService.GetRowData(Team_ID)); } }
public async void OnNavigatingTo(INavigationParameters parameters) { if (parameters.GetNavigationMode() == NavigationMode.New) { if (parameters.ContainsKey("jobitem")) { Issue = ((Issue)parameters["jobitem"]); Title = Issue.Title; await GetCosts(); } } }
public async void OnNavigatingTo(INavigationParameters parameters) { if (parameters.GetNavigationMode() == NavigationMode.New) { if (parameters.ContainsKey("job")) { Job = ((JobCard)parameters["job"]); Title = Job.Name; await GetJobcardItems(); } } }
public override void OnNavigatedTo(INavigationParameters parameters) { if (parameters.ContainsKey("manga")) { manga = parameters.GetValue <MangaFromModels>("manga"); GetManga(manga); GetCharacters(l_Id); GetStats(l_Id); GetNews(l_Id); } }
public Task <bool> CanNavigateAsync(INavigationParameters parameters) { return(Task.Run(() => { if (parameters.ContainsKey("canNavigate")) { return (bool)parameters["canNavigate"]; } return true; })); }
public async override void OnNavigatedTo(INavigationParameters parameters) { if (parameters.ContainsKey("gazette")) { SelectedGazette = parameters["gazette"] as GazetteResult; if (SelectedGazette != null) { Title = SelectedGazette.Label; await GetPublicstions(); } } }
public Task<bool> CanNavigateAsync(INavigationParameters parameters) { return Task.Run(() => { OnConfirmNavigationCalled = true; if (parameters.ContainsKey("canNavigate")) return (bool)parameters["canNavigate"]; return true; }); }
public static bool TryGetValue <T>(this INavigationParameters parameters, string key, out T outValue) { if (!parameters.ContainsKey(key)) { outValue = default(T); return(false); } else { return(parameters.TryGetValue(key, out outValue)); } }
// Init function public async void OnNavigatedTo(INavigationParameters parameters) { // base.OnNavigatingTo(parameters); if (parameters.ContainsKey("RedactorId")) { Title = (string)parameters["title"]; string UniqueId = (string)parameters["RedactorId"]; // replace to guid // Replace with function method in DAL Redactor = new Redactors(); Redactor.Name = "Nieuwsartikelen van " + UniqueId; } }