Skip to content

Instantly share code, notes, and snippets.

@jasondown
Last active August 3, 2021 08:16
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/57045095d72e6a2d2809097fe2e0ea77 to your computer and use it in GitHub Desktop.
Save jasondown/57045095d72e6a2d2809097fe2e0ea77 to your computer and use it in GitHub Desktop.
public void InitPageableImages()
{
CanPageNext = _images.Count > PageSize;
CanPagePrevious = false;
CurrentPage = 0;
PageableImages.Reset(GetImages());
OnPropertyChanged("PageableImages");
CommandManager.InvalidateRequerySuggested(); // ADDED THIS LINE
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment