public void SearchPosts(string query) { if (string.IsNullOrWhiteSpace(QueryText)) { return; } Posts = CreateIncrementalPosts(query); }
public void SearchGifs(string query) { if (string.IsNullOrWhiteSpace(QueryText)) { return; } query += " ext: gif"; Gifs = CreateIncrementalPosts(query); }
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; }