C# Класс ModernWPF.ViewModels.AsyncPagerViewModel

View model for the typical paging logic when given paging size, current page, and total item count.
Наследование: ViewModelBase
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
TryGoToPageAsync ( int page ) : System.Threading.Tasks.Task

Описание методов

AsyncPagerViewModel() публичный Метод

Initializes a new instance of the AsyncPagerViewModel class.
public AsyncPagerViewModel ( ) : GalaSoft.MvvmLight.Command
Результат GalaSoft.MvvmLight.Command

AsyncPagerViewModel() публичный Метод

Initializes a new instance of the AsyncPagerViewModel class.
public AsyncPagerViewModel ( Func pageChangedCallback ) : GalaSoft.MvvmLight.Command
pageChangedCallback Func The page changed callback.
Результат GalaSoft.MvvmLight.Command

AsyncPagerViewModel() публичный Метод

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.
Результат GalaSoft.MvvmLight.Command

UpdateStat() публичный Метод

To be called by consumers when paged data result changes.
public UpdateStat ( int currentPage, int totalCount ) : void
currentPage int
totalCount int
Результат void