protected override async void OnNavigatedTo(NavigationEventArgs e) { string parameter = string.Empty; if (NavigationContext.QueryString.TryGetValue("five", out parameter)) { target = JsonConvert.DeserializeObject <Five>(parameter); await WeBallAPI.getMatches(target._id); if (WeBallAPI.Success == false) { return; } target = WeBallAPI.FiveList.FirstOrDefault(s => s._id == target._id); if (target.matchs != null) { target.nTotalMatchs = target.matchs.Count; } else { target.nTotalMatchs = 0; } FiveGrid.DataContext = target; FiveGridBis.DataContext = target; } }
protected override async void OnNavigatedTo(NavigationEventArgs e) { string parameter = string.Empty; if (NavigationContext.QueryString.TryGetValue("five", out parameter)) { target = JsonConvert.DeserializeObject <Five>(parameter); FiveGrid.DataContext = target; FiveGridBis.DataContext = target; await WeBallAPI.getMatches(target._id); } }