Exemplo n.º 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;
 }
Exemplo n.º 2
0
 protected override void OnNavigatingFrom(NavigatingCancelEventArgs e)
 {
     base.OnNavigatingFrom(e);
     ItemsSource?.StopLoading();
     ItemsSource = null;
 }
Exemplo n.º 3
0
 public static void RefreshSearchResultList(SearchParam param)
 {
     SearchResultList?.StopLoading();
     SearchResultList = new SearchResultIllustsCollection(param.Word, param.SearchTarget, param.Sort, param.Duration);
 }