protected async override void OnNavigatedTo(NavigationEventArgs e) { mid = e.Parameter.ToString(); user = await UserRelated.GetBasicInfoAsync(mid); sets = await UserRelated.GetUserSettingAsync(mid); Models.UserInfo info = user.Data; if (user.Status == true) { Face.ImageSource = new BitmapImage { UriSource = new Uri(info.Face) }; level.Source = new BitmapImage { UriSource = new Uri("ms-appx:///Assets//Others//lv" + info.Level_Info.Current_level + ".png", UriKind.Absolute) }; exp_current.Text = info.Level_Info.Current_exp; toutu.Source = new BitmapImage(new Uri("http://i0.hdslb.com/" + info.Toutu)); if (!string.IsNullOrWhiteSpace(info.BirthDay)) { birth.Text = "生日:" + info.BirthDay; } if (!string.IsNullOrWhiteSpace(info.RegTime)) { regdate.Text += "注册日期:" + StringDeal.LinuxToData(info.RegTime); } if (!string.IsNullOrWhiteSpace(info.Sex)) { sex.Text += "性别:" + info.Sex; } if (!string.IsNullOrWhiteSpace(info.Place)) { addr.Text = "地址:" + info.Place; } if (info.Level_Info.Current_level == "6") { bar.Value = 100; } else { bar.Value = int.Parse(info.Level_Info.Current_exp); bar.Maximum = int.Parse(info.Level_Info.Next_exp); exp_total.Text = info.Level_Info.Next_exp; } userName.Text = info.Name; sign.Text = info.Sign; } if (sets.Status != true) { toutu.SizeChanged -= toutu_SizeChanged; } Site_Concern concern = await UserRelated.GetConcernBangumiAsync(mid, 1, false); if (concern != null) { var concerns = concern.Result; if (concerns != null) { if (concerns[0].Title == "PRIVATE") { txt_private.Visibility = Visibility.Visible; conlist.Visibility = Visibility.Collapsed; } else { conlist.ItemsSource = concerns; } } } }