private async void Pivot_SelectionChanged(object sender, SelectionChangedEventArgs e) { PivotItem item = (PivotItem)pivot.SelectedItem; string tag = item.Header.ToString(); if (tag == "评论" && listview.Items.Count == 0) { if (aid.Length > 0) { var text = Load.FindChildOfType <TextBlock>(listview); bool isDone = await load(1, aid); if (isDone && text != null) { text.Text = "评论装填完毕!"; } } else { // load(1,season_id) } } if (tag == "相关视频" && list_relates.Items.Count == 0) { if (aid.Length > 0) { list_relates.ItemsSource = await ContentServ.GetRelatesAsync(aid); } else { // load(1,season_id) } } }
private async void Pivot_SelectionChanged(object sender, SelectionChangedEventArgs e) { ReadyList.SelectionMode = ListViewSelectionMode.Single; btn_addfav.Visibility = btn_like.Visibility = btn_down.Visibility = btn_share.Visibility = Visibility.Visible; btn_all.Visibility = btn_ok.Visibility = btn_cal.Visibility = Visibility.Collapsed; PivotItem item = (PivotItem)pivot.SelectedItem; string tag = item.Header.ToString(); if (tag == "评论" && listview.Items.Count == 0) { if (aid.Length > 0) { var text = Load.FindChildOfType <TextBlock>(listview); bool isDone = await load(1, aid); if (isDone && text != null) { text.Text = "评论装填完毕!"; } } else { //load(1,season_id) } } if (tag == "相关视频" && list_relates.Items.Count == 0) { if (aid.Length > 0) { list_relates.ItemsSource = await ContentServ.GetRelatesAsync(aid); } else { //load(1,season_id) } } }