Пример #1
0
        private void OnSearchPaneResultSuggestionChosen(SearchPane sender, SearchPaneResultSuggestionChosenEventArgs args)
        {
            var id     = int.Parse(args.Tag);
            var result = _cities.Single(x => x.Id == id);
            var info   = new ClockInfo
            {
                CityName    = result.Name,
                TimeZoneId  = result.TimeZoneId,
                CountryCode = result.CountryCode,
                CountryName = result.CountryName
            };

            AddClock(info);
        }
Пример #2
0
 private void OnResultSuggestionChosen(SearchPane sender, SearchPaneResultSuggestionChosenEventArgs e)
 {
     // Handle the selection of a result suggestion since the XML Suggestion Format can return these.
     MainPage.Current.NotifyUser("Result suggestion selected with tag: " + e.Tag, NotifyType.StatusMessage);
 }
Пример #3
0
        private void NavigateToProductGroup(SearchPane sender, SearchPaneResultSuggestionChosenEventArgs args)
        {
            var productGroupFriendlyUrl = args.Tag;

            _onResultSuggestionChosen(productGroupFriendlyUrl);
        }
Пример #4
0
 private void SearchPaneOnResultSuggestionChosen(SearchPane sender, SearchPaneResultSuggestionChosenEventArgs args)
 {
     this.NavigateToTagAsync(args.Tag);
 }
 void OnSearchSuggestionChosen(
     SearchPane sender, SearchPaneResultSuggestionChosenEventArgs args)
 {
     NotifyUser("Recommendation picked: " + args.Tag);
 }