C# 클래스 ModernWPF.ViewModels.AsyncPagerViewModel

View model for the typical paging logic when given paging size, current page, and total item count.
상속: ViewModelBase
파일 보기 프로젝트 열기: soukoku/ModernWPF

공개 메소드들

메소드 설명
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