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