public override Task OnNavigatedToAsync(object parameter, NavigationMode mode, IDictionary <string, object> state) { galleryMetaInfo = (GalleryMetaInfo)BootStrapper.Current.SessionState[(string)parameter]; Images = galleryMetaInfo.Gallery; FlipViewIndex = galleryMetaInfo.SelectedIndex; return(base.OnNavigatedToAsync(parameter, mode, state)); }
private void GoToBrowser(IEnumerable <IGalleryItem> gallery, int index, string pageKey) { const string navigationParamName = "GalleryInfo"; var galleryMetaInfo = new GalleryMetaInfo { Gallery = gallery, SelectedIndex = index }; Helpers.StateHelper.SessionState[navigationParamName] = galleryMetaInfo; navigationService.NavigateTo(pageKey, navigationParamName); }
public void ImageTapped(GalleryItem clickedItem) { const string navigationParamName = "GalleryInfo"; galleryMetaInfo = new GalleryMetaInfo { Gallery = Images, SelectedIndex = Images.IndexOf(clickedItem) }; Helpers.StateHelper.SessionState[navigationParamName] = galleryMetaInfo; navigationService.NavigateTo(PageKeyHolder.SubredditBrowserPageKey, navigationParamName); return; }
private void GoToBrowser(IEnumerable <IGalleryItem> gallery, int index) { const string navigationParamName = "GalleryInfo"; var galleryMetaInfo = new GalleryMetaInfo { Gallery = gallery, SelectedIndex = index }; BootStrapper.Current.SessionState[navigationParamName] = galleryMetaInfo; BootStrapper.Current.NavigationService.Navigate(typeof(BrowserPage), navigationParamName); return; }
private void NavigateToBrowser(IncrementalPosts imageCollection) { const string navigationParamName = "GalleryInfo"; galleryMetaInfo = new GalleryMetaInfo { Gallery = imageCollection, SelectedIndex = ImageSelectedIndex }; Helpers.StateHelper.SessionState[navigationParamName] = galleryMetaInfo; navigationService.NavigateTo(PageKeyHolder.BrowserPageKey, navigationParamName); return; }
public void ImageTapped(object sender, object parameter) { var args = parameter as Windows.UI.Xaml.Controls.ItemClickEventArgs; var clickedItem = args.ClickedItem as GalleryItem; const string navigationParamName = "GalleryInfo"; galleryMetaInfo = new GalleryMetaInfo { Gallery = Images, SelectedIndex = Images.IndexOf(clickedItem) }; BootStrapper.Current.SessionState[navigationParamName] = galleryMetaInfo; BootStrapper.Current.NavigationService.Navigate(typeof(BrowserPage), navigationParamName); return; }
public void ImageTapped(object sender, object parameter) { var clickedItem = parameter as GalleryItem; ImageSelectedIndex = Images.IndexOf(clickedItem); const string navigationParamName = "GalleryInfo"; galleryMetaInfo = new GalleryMetaInfo { Gallery = Images, SelectedIndex = ImageSelectedIndex }; BootStrapper.Current.SessionState[navigationParamName] = galleryMetaInfo; BootStrapper.Current.NavigationService.Navigate(typeof(BrowserPage), navigationParamName); return; }
public void Activate(object parameter) { galleryMetaInfo = (GalleryMetaInfo)Helpers.StateHelper.SessionState[(string)parameter]; Images = galleryMetaInfo.Gallery; FlipViewIndex = galleryMetaInfo.SelectedIndex; }