예제 #1
0
 /// <summary>
 /// Triggered by reaching the end of list (or near the end based on configuration)
 /// Indicates the need for loading more search results.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private async void SearchCollections_OnLoadMoreRequested(object sender, VerticalGridView.LoadMoreEventArgs e)
 {
     var term = SearchTextBox.Text;
     if (string.IsNullOrWhiteSpace(term))
     {
         e.IsLoadingMore = false;
         return;
     }
     await _searchViewModel.LoadMoreSearchResultsAsync(term);
     e.IsLoadingMore = false;
 }
예제 #2
0
 /// <summary>
 /// Triggered by reaching the end of list (or near the end based on configuration)
 /// Indicates the need for loading more Recent photos.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private async void PhotosCollections_OnLoadMoreRequested(object sender, VerticalGridView.LoadMoreEventArgs e)
 {
     await _mainViewModel.LoadMorePhotosAsync();
     e.IsLoadingMore = false;
 }