private void OnQuerySubmitted(object sender, SearchPaneQuerySubmittedEventArgs args) { if (Window.Current != null) { (Window.Current.Content as Frame).Navigate(typeof(ItemsPage), args.QueryText); } }
/// <summary> /// User has choose a search suggestion. /// </summary> /// <param name="sender"></param> /// <param name="args"></param> void SearchPaneQuerySubmitted(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) { Frame frame; if (Window.Current.Content == null) { frame = new Frame(); } else { frame = Window.Current.Content as Frame; } if (args.QueryText.Contains(Consts.SearchSplitter)) { var notebookName = args.QueryText.Substring(0, args.QueryText.IndexOf(Consts.SearchSplitter)); var noteName = args.QueryText.Substring(args.QueryText.IndexOf(Consts.SearchSplitter) + Consts.SearchSplitter.Length); var notebook = NotesDataSource.SearchNotebook(notebookName); if (notebook == null) { return; } var note = NotesDataSource.SearchNote(notebook.UniqueId, noteName); if (note == null) { return; } frame.Navigate(typeof(ItemDetailPage), note.UniqueId); } else { frame.Navigate(typeof(SearchResults), args.QueryText); } }
private void QuerySubmitted(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) { if (args.QueryText == "Apple") { this.Frame.Navigate(typeof(Apple)); } }
// </Snippetcs_searchactivated_handler> private void OnQuerySubmitted(object sender, SearchPaneQuerySubmittedEventArgs args) { if (MainPage.Current != null) { MainPage.Current.ProcessQueryText(args.QueryText); } }
private void SearchPane_QuerySubmitted(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) { var navService = (INavigationService)_container.GetInstance(typeof(INavigationService), null); navService.Navigate(typeof(SearchResultsView), new SearchTextParameter(args.QueryText)); Window.Current.Activate(); }
/// <summary> /// Initializes a new instance of the <see cref="SearchQueryArguments"/> class. /// </summary> /// <param name="args">The <see cref="SearchPaneQuerySubmittedEventArgs"/> instance containing the event data, that will be used for initializing the SearchQueryArgument instance.</param> public SearchQueryArguments(SearchPaneQuerySubmittedEventArgs args) { if (args != null) { Language = args.Language; QueryText = args.QueryText; } }
private void OnQuerySubmitted(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) { var frame = Window.Current.Content as Frame; if (frame != null && !(frame.Content is SearchResultsPage)) { NavigatetToSearchPage(frame, args.QueryText); } }
private void OnQuerySubmitted(object sender, SearchPaneQuerySubmittedEventArgs args) { if (MainPage.Current != null) { Frame rootFrame = Window.Current.Content as Frame; rootFrame.Navigate(typeof(MainPage)); MainPage.Current.RefreshGridWithSearchResults(args.QueryText); } }
private void OnSearchPaneQuerySubmitted(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) { var previousContent = Window.Current.Content; var frame = previousContent as Frame; frame.Navigate(typeof(CitiesSearchResultsPage), args.QueryText); Window.Current.Content = frame; // Ensure the current window is active Window.Current.Activate(); }
/// <summary> /// Searches for buses. /// </summary> private async void OnAppQuerySubmitted(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) { var searchViewModel = this.ViewModel as SearchResultsPageControlViewModel; if (searchViewModel != null) { await searchViewModel.SearchAsync(args.QueryText); } else { await NavigationController.Instance.NavigateToPageControlAsync(PageControlTypes.SearchResults, args.QueryText); } }
private void MainPage_QuerySubmitted(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) { if (args.QueryText == "4 Runner") { Frame.Navigate(typeof(_4_runner_page)); } else if (args.QueryText == "High Lander") { Frame.Navigate(typeof(highlander_page)); } else if (args.QueryText == "Tacoma") { Frame.Navigate(typeof(tacoma_page)); } else if (args.QueryText == "Avalon") { Frame.Navigate(typeof(avalon_page)); } else if (args.QueryText == "Camry") { Frame.Navigate(typeof(camry_page)); } else if (args.QueryText == "Carolla") { Frame.Navigate(typeof(corolla_page)); } else if (args.QueryText == "Tundra") { Frame.Navigate(typeof(tundra_page)); } else if (args.QueryText == "Sequoia") { Frame.Navigate(typeof(sequoia_page)); } else if (args.QueryText == "Sienna") { Frame.Navigate(typeof(sienna_page)); } else if (args.QueryText == "Yaris") { Frame.Navigate(typeof(yaris_page)); } else if (args.QueryText == "Land Cruiser") { Frame.Navigate(typeof(Land_cruiser)); } else if (args.QueryText == "Rav4 Hybrid") { Frame.Navigate(typeof(rav4_hybrid)); } }
void search_QuerySubmitted(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) { var frame = Window.Current.Content as Frame; if (frame == null) { frame = new Frame(); Window.Current.Content = frame; } // show and activate... frame.ShowView(typeof(ISearchResultsPageViewModel), args.QueryText); Window.Current.Activate(); }
private async void OnQuerySubmitted(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) { try { await _messageHub.Send(new SearchQuerySubmittedMessage(args.QueryText)); } catch (Exception ex) { // Due to an issues I've noted online: http://social.msdn.microsoft.com/Forums/en/winappswithcsharp/thread/bea154b0-08b0-4fdc-be31-058d9f5d1c4e // I am limiting the use of 'async void' In a few rare occasions I use it // and manually route the exceptions to the UnhandledExceptionHandler ((App)App.Current).OnUnhandledException(ex); } }
private void SearchPaneQuerySubmitted( SearchPane sender, SearchPaneQuerySubmittedEventArgs args) { GeocodeLocation geoCodeLocation = _searchResponse.LocationData .FirstOrDefault(locationData => locationData.Address.FormattedAddress == args.QueryText) ?? _searchResponse.LocationData.FirstOrDefault(); _lastFocusedMapPin = _focusedMapPin; if (geoCodeLocation != null) { MapPin existedMapPin = _mapPins.FirstOrDefault(mapPin => mapPin.Latitude == geoCodeLocation.Location.Latitude.ToString() && mapPin.Longitude == geoCodeLocation.Location.Longitude.ToString()); if (existedMapPin == null) { MapPin mapPinElement = new MapPin(string.Empty, string.Empty, geoCodeLocation.Location.Latitude.ToString(), geoCodeLocation.Location.Longitude.ToString()); mapPinElement.MapPinTapped += MapPinElementMapPinTapped; MapView.Children.Add(mapPinElement); MapLayer.SetPosition(mapPinElement, geoCodeLocation.Location); MapView.SetView(geoCodeLocation.Location, 15.0f); _focusedMapPin = mapPinElement; } else { Location location = new Location(double.Parse(existedMapPin.Latitude), double.Parse(existedMapPin.Longitude)); MapView.SetView(location, 15.0f); existedMapPin.Focus(); _focusedMapPin = existedMapPin; } DefaultViewModel["Focused"] = true; } DefaultViewModel["Linkable"] = (bool)DefaultViewModel["Focused"] && _focusedMapPin.Marked; DefaultViewModel["Markable"] = (bool)DefaultViewModel["Focused"] && !(bool)DefaultViewModel["Linkable"]; DefaultViewModel["UnMarkable"] = (bool)DefaultViewModel["Linkable"]; }
private void go(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) { string s = args.QueryText; //Words Starts With 'A'. if (s == "Americas") { Uri america = new Uri("http://rss.cnn.com/rss/edition_americas.rss"); this.Frame.Navigate(typeof(national_rss), america); } else if (s == "Asia") { Uri asia = new Uri("http://rss.cnn.com/rss/edition_asia.rss"); this.Frame.Navigate(typeof(national_rss), asia); } else if (s == "Africa") { Uri africa = new Uri("http://rss.cnn.com/rss/edition_africa.rss"); this.Frame.Navigate(typeof(national_rss), africa); } else if (s == "Articles") { Uri article = new Uri("http://feeds.feedburner.com/TheNewsInternational-Opinion"); this.Frame.Navigate(typeof(national_rss), article); } else if (s == "All Fashion") { Uri latest = new Uri("http://feeds.glamour.com/glamour/all_fashion"); this.Frame.Navigate(typeof(national_rss), latest); } //Words Starts With 'B'. else if (s == "Bussiness Global") { Uri buss = new Uri(" http://rss.cnn.com/rss/money_news_international.rss"); this.Frame.Navigate(typeof(national_rss), buss); } else if (s == "Business National") { Uri bussiness = new Uri("http://feeds.feedburner.com/TheNewsInternational-Business"); this.Frame.Navigate(typeof(national_rss), bussiness); } else if (s == "BBC Health") { Uri bbch = new Uri("http://feeds.bbci.co.uk/news/health/rss.xml?edition=int"); this.Frame.Navigate(typeof(national_rss), bbch); } else if (s == "Basketball") { Uri nba = new Uri("http://sports.espn.go.com/espn/rss/nba/news"); this.Frame.Navigate(typeof(national_rss), nba); } else if (s == "Baseball") { Uri mlb = new Uri("http://sports.espn.go.com/espn/rss/mlb/news"); this.Frame.Navigate(typeof(national_rss), mlb); } else if (s == "Beauty") { Uri review = new Uri("http://www.allure.com/services/rss/feeds/everything.xml"); this.Frame.Navigate(typeof(national_rss), review); } //Words Starts With 'C'. else if (s == "Cricket") { Uri cri = new Uri("http://www.espncricinfo.com/rss/content/story/feeds/0.xml"); this.Frame.Navigate(typeof(national_rss), cri); } else if (s == "Cricket Scores Live") { Uri scorecard = new Uri("http://static.cricinfo.com/rss/livescores.xml"); this.Frame.Navigate(typeof(national_rss), scorecard); } //Words Starts With 'D'. else if (s == "Dresses") { Uri dres = new Uri("http://www.fashiontrends.pk/dresses/salwar-kameez/"); this.Frame.Navigate(typeof(fact), dres); } //Words Starts With 'E'. else if (s == "Education") { Uri edu = new Uri("http://www.ei-ie.org/en/rss/latestnews/en.rss"); this.Frame.Navigate(typeof(national_rss), edu); } else if (s == "Entertainment") { this.Frame.Navigate(typeof(entertainment)); } else if (s == "Europe") { Uri europe = new Uri("http://rss.cnn.com/rss/edition_europe.rss"); this.Frame.Navigate(typeof(national_rss), europe); } //Words Starts With 'F'. else if (s == "Facts About Pakistan") { this.Frame.Navigate(typeof(fact)); } else if (s == "Fashion") { this.Frame.Navigate(typeof(entertainment)); } else if (s == "Football") { Uri soccer = new Uri("http://feeds.bbci.co.uk/sport/0/football/rss.xml?edition=uk"); this.Frame.Navigate(typeof(national_rss), soccer); } else if (s == "Footware") { Uri footwar = new Uri("http://footwearnews.com/"); this.Frame.Navigate(typeof(fact), footwar); } //Words Starts With 'G'. else if (s == "Global News") { this.Frame.Navigate(typeof(global)); } else if (s == "Golf") { Uri golf = new Uri("http://feeds.bbci.co.uk/sport/0/golf/rss.xml?edition=uk"); this.Frame.Navigate(typeof(national_rss), golf); } //Words Starts With 'H'. else if (s == "Health") { this.Frame.Navigate(typeof(health)); } else if (s == "Health:BBC") { Uri bbch = new Uri("http://feeds.bbci.co.uk/news/health/rss.xml?edition=int"); this.Frame.Navigate(typeof(national_rss), bbch); } else if (s == "Health:The New York Times") { Uri tnkh = new Uri("http://rss.nytimes.com/services/xml/rss/nyt/Research.xml"); this.Frame.Navigate(typeof(national_rss), tnkh); } else if (s == "Hockey") { Uri nhl = new Uri("http://sports.espn.go.com/espn/rss/nhl/news"); this.Frame.Navigate(typeof(national_rss), nhl); } else if (s == "Hair Styles New Trend") { Uri review = new Uri("http://www.haircutshairstyles.com/rss/trends.xml"); this.Frame.Navigate(typeof(national_rss), review); } //Words Starts With 'I'. else if (s == "Islamabad") { Uri isl = new Uri("http://feeds.feedburner.com/TheNewsInternational-Islamabad"); this.Frame.Navigate(typeof(national_rss), isl); } //Words Starts With 'K'. else if (s == "Karachi") { Uri karachi = new Uri("http://feeds.feedburner.com/TheNewsInternational-Karachi"); this.Frame.Navigate(typeof(national_rss), karachi); } //Words Starts With 'L'. else if (s == "Lahore") { Uri lahore = new Uri("http://feeds.feedburner.com/TheNewsInternational-Lahore"); this.Frame.Navigate(typeof(national_rss), lahore); } else if (s == "Latest Global News") { Uri us = new Uri("http://rss.cnn.com/rss/edition.rss"); this.Frame.Navigate(typeof(national_rss), us); } else if (s == "Latest National News") { Uri top = new Uri("http://feeds.feedburner.com/com/cwEr"); this.Frame.Navigate(typeof(national_rss), top); } else if (s == "Latest Sports News") { Uri sport = new Uri("http://feeds.feedburner.com/TheNewsInternational-Sports"); this.Frame.Navigate(typeof(national_rss), sport); } else if (s == "Latest Health News") { this.Frame.Navigate(typeof(health)); } else if (s == "Latest Entertainment News") { this.Frame.Navigate(typeof(entertainment)); } else if (s == "Latest Education News") { Uri edu = new Uri("http://www.ei-ie.org/en/rss/latestnews/en.rss"); this.Frame.Navigate(typeof(national_rss), edu); } else if (s == "Latest Hair Styles") { Uri review = new Uri("http://www.haircutshairstyles.com/rss/trends.xml"); this.Frame.Navigate(typeof(national_rss), review); } //Words Starts With 'M'. else if (s == "MLB/Baseball") { Uri mlb = new Uri("http://sports.espn.go.com/espn/rss/mlb/news"); this.Frame.Navigate(typeof(national_rss), mlb); } else if (s == "Motorsport") { Uri motor = new Uri("http://sports.espn.go.com/espn/rss/rpm/news"); this.Frame.Navigate(typeof(national_rss), motor); } else if (s == "Movies") { this.Frame.Navigate(typeof(entertainment)); } else if (s == "Movie News Hollywood") { Uri top = new Uri("http://rss.cnn.com/rss/edition_entertainment.rss"); this.Frame.Navigate(typeof(national_rss), top); } else if (s == "Movie Reviews Hollywood") { Uri review = new Uri("http://www.cinemablend.com/rss_review.php"); this.Frame.Navigate(typeof(national_rss), review); } else if (s == "Movie News Bollywood") { Uri top = new Uri("http://www.bollywoodhungama.com/rss/news.xml"); this.Frame.Navigate(typeof(national_rss), top); } else if (s == "Movies Previews Bollywood") { Uri latest = new Uri("http://www.bollywoodhungama.com/rss/movie_previews.xml"); this.Frame.Navigate(typeof(national_rss), latest); } else if (s == "Movie Reviews Bollywood") { Uri review = new Uri("http://www.bollywoodhungama.com/rss/movie_reviews.xml"); this.Frame.Navigate(typeof(national_rss), review); } else if (s == "More Fashion") { Uri review = new Uri("http://www.justluxe.com/rss/rss-channels.php?sec=fineliving"); this.Frame.Navigate(typeof(national_rss), review); } //Words Starts With 'N'. else if (s == "NHL/Hockey") { Uri nhl = new Uri("http://sports.espn.go.com/espn/rss/nhl/news"); this.Frame.Navigate(typeof(national_rss), nhl); } else if (s == "NBA/Basketball") { Uri nba = new Uri("http://sports.espn.go.com/espn/rss/nba/news"); this.Frame.Navigate(typeof(national_rss), nba); } else if (s == "New Movies Hollywood") { Uri coming = new Uri("http://www.cinemablend.com/rss_preview.php"); this.Frame.Navigate(typeof(national_rss), coming); } else if (s == "New Movies Bollywood") { Uri coming = new Uri("http://www.bollywoodhungama.com/rss/release_dates.xml"); this.Frame.Navigate(typeof(national_rss), coming); } else if (s == "National News") { this.Frame.Navigate(typeof(national)); } else if (s == "National News(All Cities)") { Uri national = new Uri("http://feeds.feedburner.com/TheNewsInternational-National"); this.Frame.Navigate(typeof(national_rss), national); } //Words Starts With 'P'. else if (s == "Peshawar") { Uri peshawar = new Uri("http://feeds.feedburner.com/TheNewsInternational-Peshawar"); this.Frame.Navigate(typeof(national_rss), peshawar); } //Words Starts With 'R'. else if (s == "Rugby League") { Uri rl = new Uri("http://feeds.bbci.co.uk/sport/0/rugby-league/rss.xml?edition=uk"); this.Frame.Navigate(typeof(national_rss), rl); } else if (s == "Rugby Union") { Uri ru = new Uri("http://feeds.bbci.co.uk/sport/0/rugby-union/rss.xml?edition=uk"); this.Frame.Navigate(typeof(national_rss), ru); } //Words Starts With 'S'. else if (s == "Sports:ESPN/BBC") { this.Frame.Navigate(typeof(sports)); } else if (s == "Soccer") { Uri soccer = new Uri("http://feeds.bbci.co.uk/sport/0/football/rss.xml?edition=uk"); this.Frame.Navigate(typeof(national_rss), soccer); } else if (s == "Snooker") { Uri snooker = new Uri("http://feeds.bbci.co.uk/sport/0/snooker/rss.xml?edition=uk"); this.Frame.Navigate(typeof(national_rss), snooker); } else if (s == "Space & Science") { Uri space = new Uri("http://rss.cnn.com/rss/edition_space.rss"); this.Frame.Navigate(typeof(national_rss), space); } else if (s == "Sports:BBC") { Uri sports = new Uri("http://feeds.bbci.co.uk/sport/0/rss.xml?edition=uk"); this.Frame.Navigate(typeof(national_rss), sports); } else if (s == "Sports:The News") { Uri sport = new Uri("http://feeds.feedburner.com/TheNewsInternational-Sports"); this.Frame.Navigate(typeof(national_rss), sport); } //Words Starts With 'T'. else if (s == "Top Stories(Global)") { Uri us = new Uri("http://rss.cnn.com/rss/edition.rss"); this.Frame.Navigate(typeof(national_rss), us); } else if (s == "Top Stories of National") { Uri top = new Uri("http://feeds.feedburner.com/com/cwEr"); this.Frame.Navigate(typeof(national_rss), top); } else if (s == "Top Stories of Sports") { Uri sports = new Uri("http://feeds.bbci.co.uk/sport/0/rss.xml?edition=uk"); this.Frame.Navigate(typeof(national_rss), sports); } else if (s == "Top Stories of Science") { Uri space = new Uri("http://rss.cnn.com/rss/edition_space.rss"); this.Frame.Navigate(typeof(national_rss), space); } else if (s == "Top Stories of Health") { this.Frame.Navigate(typeof(health)); } else if (s == "Top Stories of Hollywood") { Uri top = new Uri("http://rss.cnn.com/rss/edition_entertainment.rss"); this.Frame.Navigate(typeof(national_rss), top); } else if (s == "Top Stories of Bollywood") { Uri top = new Uri("http://www.bollywoodhungama.com/rss/news.xml"); this.Frame.Navigate(typeof(national_rss), top); } else if (s == "Top Stories of Education") { Uri edu = new Uri("http://www.ei-ie.org/en/rss/latestnews/en.rss"); this.Frame.Navigate(typeof(national_rss), edu); } else if (s == "Top Stories of Fashion") { Uri top = new Uri("http://www.elle.com/rss/fashion.xml"); this.Frame.Navigate(typeof(national_rss), top); } else if (s == "Tennis") { Uri tenni = new Uri("http://feeds.bbci.co.uk/sport/0/tennis/rss.xml?edition=uk"); this.Frame.Navigate(typeof(national_rss), tenni); } else if (s == "Technology") { Uri tech = new Uri("http://rss.cnn.com/rss/edition_technology.rss"); this.Frame.Navigate(typeof(national_rss), tech); } else if (s == "The New York Times Health") { Uri tnkh = new Uri("http://rss.nytimes.com/services/xml/rss/nyt/Research.xml"); this.Frame.Navigate(typeof(national_rss), tnkh); } //Words Starts With 'U'. else if (s == "U.S") { Uri us = new Uri("http://rss.cnn.com/rss/edition_us.rss"); this.Frame.Navigate(typeof(national_rss), us); } else if (s == "Upcoming Movies of Hollywood") { Uri coming = new Uri("http://www.cinemablend.com/rss_preview.php"); this.Frame.Navigate(typeof(national_rss), coming); } else if (s == "Upcoming Movies of Bollywood") { Uri coming = new Uri("http://www.bollywoodhungama.com/rss/release_dates.xml"); this.Frame.Navigate(typeof(national_rss), coming); } //Words Starts With 'W'. else if (s == "World") { Uri world = new Uri("http://rss.cnn.com/rss/edition_world.rss"); this.Frame.Navigate(typeof(national_rss), world); } else if (s == "Weather News") { this.Frame.Navigate(typeof(weather)); } }
async void searchPane_QuerySubmitted(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) { string queryText = args.QueryText; await SearchStations(queryText); }
void searchPane_QuerySubmitted(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) { string query = args.QueryText; SearchFor(query); }
//note: App.xaml.cs -> OnSearchActivated <== wire up search from OS into this APP public void onQuerySubmitted(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) { //THE SEARCHPANE CAN BE POPULATED WITH OUR OWN UI }
/// <summary> /// Called when a search is performed when the application is running. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The <see cref="SearchPaneQuerySubmittedEventArgs"/> instance containing the event data.</param> private void OnQuerySubmitted(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) { var searchQueryArguments = new SearchQueryArguments(args); OnSearchApplication(searchQueryArguments); }
private async void SearchPaneOnQuerySubmitted(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) { await this.dispatcher.RunAsync(() => this.navigationService.NavigateTo <ISearchPageView>(args.QueryText)); }
/// <summary> /// Raised when the user search in the app with the Charm bar /// </summary> /// <param name="sender">Search Pane</param> /// <param name="args">Contains search query</param> private void SearchPage_QuerySubmitted(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) { Search(args.QueryText); }
async void searchPane_QuerySubmitted(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) { string queryText = args.QueryText; DoSearch(queryText); }
private void OnQuerySubmitted(object sender, SearchPaneQuerySubmittedEventArgs args) { OpenSearchPage(args.QueryText); }
protected void OnQuerySubmitted(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) { DisplaySearchResults(args.QueryText, args.Language); }
private void OnSearchQuerySubmitted(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) { //search in your app here }
private void OnQuerySubmitted(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) { GetQueryResults(args.QueryText); }
/// <summary> /// Called when a search query is submitted. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The <see cref="SearchPaneQuerySubmittedEventArgs"/> instance containing the event data.</param> private void OnQuerySubmitted(object sender, SearchPaneQuerySubmittedEventArgs args) { RootFrame.Navigate(typeof(ShowListPage), new ShowListParams(MethodCall.Search, null, args.QueryText)); }
private void SearchProductGroup(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) { _onQuerySubmitted(sender.QueryText); }
private void App_SearchRequested(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) { CommonUtils.GetCurrentFrame().Navigate(typeof(SearchPage), args.QueryText); }
void sPanel_QuerySubmitted(SearchPane sender, SearchPaneQuerySubmittedEventArgs args) { this.txtQueryText.Text = String.Format(QueryTitle, args.QueryText); OnSearchData(null, new Views.SearchResultsEventArgs(args.QueryText)); }