protected SearchResultVM() { this.Open = new Command <Gallery>(g => { this.SelectedGallery = g; GalleryVM.GetVM(g); RootControl.RootController.Frame.Navigate(typeof(GalleryPage), g.ID); }, g => g != null); }
public PopularVM() { this.Refresh = new Command(() => this.Galleries.Clear()); this.Open = new Command <Gallery>(g => { GalleryVM.GetVM(g); RootControl.RootController.Frame.Navigate(typeof(GalleryPage), g.ID); }, g => g != null); }
protected GalleryListVM() { this.Delete = new Command <Gallery>(async g => { await g.DeleteAsync(); this.Galleries?.Remove(g); RootControl.RootController.SendToast(Strings.Resources.Views.CachedPage.GalleryDeleted, null); }, g => g != null); this.Open = new Command <Gallery>(g => { GalleryVM.GetVM(g); RootControl.RootController.Frame.Navigate(typeof(GalleryPage), g.ID); }, g => g != null); }