public NavigateToPrevPageCommand(PagerModel pager)
		{
			this.pager = pager;
			this.pager.PropertyChanged += (sender, args) =>
			                              	{
			                              		if (args.PropertyName == "HasPrevPage")
			                              			RaiseCanExecuteChanged();
			                              	};
		}
Exemple #2
0
		public DocumentsModel()
		{
			Documents = new BindableCollection<ViewableDocument>(document => document.Id ?? document.DisplayId, new KeysComparer<ViewableDocument>(document => document.LastModified));
			Documents.CollectionChanged += (sender, args) => DetermineDocumentViewStyle();

			Pager = new PagerModel();
			Pager.PagerChanged += (sender, args) => ForceTimerTicked();

			ShowEditControls = true;
		}
Exemple #3
0
		public DocumentsModel(Func<DocumentsModel, Task> fetchDocuments)
		{
			this.fetchDocuments = fetchDocuments;
			Documents = new BindableCollection<ViewableDocument>(document => document.Id ?? document.DisplayId, new KeysComparer<ViewableDocument>(document => document.LastModified));
			Documents.CollectionChanged += (sender, args) => DetermineDocumentViewStyle();

			Pager = new PagerModel();
			Pager.Navigated += (sender, args) => ForceTimerTicked();
			ForceTimerTicked();

			ShowEditControls = true;
			DocumentHeight = 66;
		}
		public NavigateToNextPageCommand(PagerModel pager)
		{
			this.pager = pager;
			this.pager.PropertyChanged += UpdateCanExecute;
		}
		public NavigateToPrevPageCommand(PagerModel pager)
		{
			this.pager = pager;
			this.pager.PagerChanged += (sender, args) => RaiseCanExecuteChanged();
		}
 public NavigateToPrevPageCommand(PagerModel pager)
 {
     this.pager = pager;
 }