public NavigateToPrevPageCommand(PagerModel pager)
		{
			this.pager = pager;
			this.pager.PropertyChanged += (sender, args) =>
			                              	{
			                              		if (args.PropertyName == "HasPrevPage")
			                              			RaiseCanExecuteChanged();
			                              	};
		}
Exemplo n.º 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;
		}
Exemplo n.º 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;
		}
Exemplo n.º 4
0
		public NavigateToNextPageCommand(PagerModel pager)
		{
			this.pager = pager;
			this.pager.PropertyChanged += UpdateCanExecute;
		}
		public NavigateToPrevPageCommand(PagerModel pager)
		{
			this.pager = pager;
			this.pager.PagerChanged += (sender, args) => RaiseCanExecuteChanged();
		}
Exemplo n.º 6
0
 public NavigateToPrevPageCommand(PagerModel pager)
 {
     this.pager = pager;
 }