Skip to content

Instantly share code, notes, and snippets.

@jasondown
Created August 3, 2021 07:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasondown/4d785caf207158b132964c23672773b0 to your computer and use it in GitHub Desktop.
Save jasondown/4d785caf207158b132964c23672773b0 to your computer and use it in GitHub Desktop.
/// <summary>
/// Initializes the pageable images and related properties.
/// </summary>
public void InitPageableImages()
{
CanPageNext = _images.Count > PageSize;
CanPagePrevious = false;
CurrentPage = 0;
PageableImages.Reset(GetImages());
OnPropertyChanged("PageableImages");
CommandManager.InvalidateRequerySuggested();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment