コード例 #1
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     if (e.Parameter is SearchParam)
     {
         param = (SearchParam)e.Parameter;
     }
     ItemsSource = new Data.SearchResultIllustsCollection(param.Word, param.SearchTarget,
                                                          param.Sort, param.Duration);
     WaterfallListView.ItemsSource = ItemsSource;
 }
コード例 #2
0
 protected override void OnNavigatingFrom(NavigatingCancelEventArgs e)
 {
     base.OnNavigatingFrom(e);
     ItemsSource?.StopLoading();
     ItemsSource = null;
 }
コード例 #3
0
ファイル: OverAll.cs プロジェクト: sovetskyfish/pixivfs-uwp
 public static void RefreshSearchResultList(SearchParam param)
 {
     SearchResultList?.StopLoading();
     SearchResultList = new SearchResultIllustsCollection(param.Word, param.SearchTarget, param.Sort, param.Duration);
 }