C# Class ModernWPF.ViewModels.AsyncPagerViewModel

View model for the typical paging logic when given paging size, current page, and total item count.
Inheritance: ViewModelBase
Afficher le fichier Open project: soukoku/ModernWPF

Méthodes publiques

Méthode Description
AsyncPagerViewModel ( ) : GalaSoft.MvvmLight.Command

Initializes a new instance of the AsyncPagerViewModel class.

AsyncPagerViewModel ( Func pageChangedCallback ) : GalaSoft.MvvmLight.Command

Initializes a new instance of the AsyncPagerViewModel class.

AsyncPagerViewModel ( Func pageChangedCallback, int pageSize ) : GalaSoft.MvvmLight.Command

Initializes a new instance of the AsyncPagerViewModel class.

UpdateStat ( int currentPage, int totalCount ) : void

To be called by consumers when paged data result changes.

Private Methods

Méthode Description
TryGoToPageAsync ( int page ) : System.Threading.Tasks.Task

Method Details

AsyncPagerViewModel() public méthode

Initializes a new instance of the AsyncPagerViewModel class.
public AsyncPagerViewModel ( ) : GalaSoft.MvvmLight.Command
Résultat GalaSoft.MvvmLight.Command

AsyncPagerViewModel() public méthode

Initializes a new instance of the AsyncPagerViewModel class.
public AsyncPagerViewModel ( Func pageChangedCallback ) : GalaSoft.MvvmLight.Command
pageChangedCallback Func The page changed callback.
Résultat GalaSoft.MvvmLight.Command

AsyncPagerViewModel() public méthode

Initializes a new instance of the AsyncPagerViewModel class.
public AsyncPagerViewModel ( Func pageChangedCallback, int pageSize ) : GalaSoft.MvvmLight.Command
pageChangedCallback Func The page changed callback.
pageSize int Initial size of the page.
Résultat GalaSoft.MvvmLight.Command

UpdateStat() public méthode

To be called by consumers when paged data result changes.
public UpdateStat ( int currentPage, int totalCount ) : void
currentPage int
totalCount int
Résultat void