C# 클래스 ModernWPF.ViewModels.PagerViewModel

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

공개 메소드들

메소드 설명
PagerViewModel ( ) : GalaSoft.MvvmLight.Command

Initializes a new instance of the PagerViewModel class.

PagerViewModel ( int>.Action pageChangedCallback ) : GalaSoft.MvvmLight.Command

Initializes a new instance of the PagerViewModel class.

PagerViewModel ( int>.Action pageChangedCallback, int pageSize ) : GalaSoft.MvvmLight.Command

Initializes a new instance of the PagerViewModel class.

UpdateStat ( int currentPage, int totalCount ) : void

To be called by consumers when paged data result changes.

비공개 메소드들

메소드 설명
TryGoToPage ( int page ) : void

메소드 상세

PagerViewModel() 공개 메소드

Initializes a new instance of the PagerViewModel class.
public PagerViewModel ( ) : GalaSoft.MvvmLight.Command
리턴 GalaSoft.MvvmLight.Command

PagerViewModel() 공개 메소드

Initializes a new instance of the PagerViewModel class.
public PagerViewModel ( int>.Action pageChangedCallback ) : GalaSoft.MvvmLight.Command
pageChangedCallback int>.Action The page changed callback.
리턴 GalaSoft.MvvmLight.Command

PagerViewModel() 공개 메소드

Initializes a new instance of the PagerViewModel class.
public PagerViewModel ( int>.Action pageChangedCallback, int pageSize ) : GalaSoft.MvvmLight.Command
pageChangedCallback int>.Action 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