Esempio n. 1
0
        static void searchBox_ResultSuggestionChosen(SearchBox sender, SearchBoxResultSuggestionChosenEventArgs args)
        {
            var command = GetResultSuggestionChosenCommand(sender);

            if (command != null && command.CanExecute(args))
            {
                command.Execute(args);
            }
        }
Esempio n. 2
0
        private void Location_ResultSuggestionChosen(SearchBox sender, SearchBoxResultSuggestionChosenEventArgs args)
        {
            var geom = Esri.ArcGISRuntime.Geometry.Geometry.FromJson(args.Tag);

            if (LocationPicked != null)
            {
                LocationPicked(this, geom);
            }
        }
Esempio n. 3
0
 private ResultSuggestionCommand GetCommand(SearchBoxResultSuggestionChosenEventArgs parameter)
 {
     return(Commands
            .Cast <ResultSuggestionCommand>()
            .FirstOrDefault(c => c.Command != null &&
                            c.CommandSelector != null &&
                            c.KeyModifier == (VirtualKeyModifiers2)parameter.KeyModifiers &&
                            c.CommandSelector.CanHandleTag(parameter.Tag)));
 }
Esempio n. 4
0
        private void SearchBoxControlOnResultSuggestionChosen(SearchBox sender, SearchBoxResultSuggestionChosenEventArgs args)
        {
            int id;

            if (string.IsNullOrWhiteSpace(args.Tag) || !int.TryParse(args.Tag, out id))
            {
                return;
            }
            App.CurrentItem = App.ItemById(id);
            if (App.CurrentItem != null)
            {
                this.Frame.Navigate(typeof(ItemDetail), App.CurrentItem.Id);
            }
        }
Esempio n. 5
0
		static void searchBox_ResultSuggestionChosen(SearchBox sender, SearchBoxResultSuggestionChosenEventArgs args)
		{
			var command = GetResultSuggestionChosenCommand(sender);
			if (command != null && command.CanExecute(args))
			{
				command.Execute(args);
			}
		}
Esempio n. 6
0
        private void Search_ResultSuggestionChosen(SearchBox sender, SearchBoxResultSuggestionChosenEventArgs args)
        {
            var itemId = args.Tag;

            this.Frame.Navigate(typeof(ItemPage), itemId);
        }
 /// <summary>
 /// Gets any modifier keys that are pressed when the user presses enter to pick a search result.
 /// </summary>
 /// <param name="e">The requested <see cref="SearchBoxResultSuggestionChosenEventArgs"/>.</param>
 /// <returns>Any modifier keys that are pressed when the user presses enter to pick a search result.</returns>
 public static VirtualKeyModifiers KeyModifiers(this SearchBoxResultSuggestionChosenEventArgs e) => Resolver.KeyModifiers(e);
 VirtualKeyModifiers ISearchBoxResultSuggestionChosenEventArgsResolver.KeyModifiers(SearchBoxResultSuggestionChosenEventArgs e) => e.KeyModifiers;
 /// <summary>
 /// SearchBoxEventsResultSuggestionChosen
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 public void SearchBoxEventsResultSuggestionChosen(SearchBox sender, SearchBoxResultSuggestionChosenEventArgs args)
 {
     this.FavoriteBrowser.Navigate(new Uri(selectedSearchEngine + args.Tag));
 }
 void OnSearchSuggestionChosen(
     SearchBox sender, SearchBoxResultSuggestionChosenEventArgs args)
 {
     NotifyUser("Recommendation picked: " + args.Tag);
 }
Esempio n. 11
0
        private void OnResultChosen(SearchBox sender, SearchBoxResultSuggestionChosenEventArgs args)
        {
            var result = searchService.GetResult(args.Tag);

            Frame.Navigate(typeof(DetailsView), result);
        }
Esempio n. 12
0
 private void Search_ResultSuggestionChosen(SearchBox sender, SearchBoxResultSuggestionChosenEventArgs args)
 {
     var itemId = args.Tag;
     this.Frame.Navigate(typeof(ItemPage), itemId);
 }
 private void SearchBoxEventsResultSuggestionChosen(Object sender, SearchBoxResultSuggestionChosenEventArgs e)
 {
     MainPage.Current.NotifyUser("Result suggestion selected with tag: " + e.Tag, NotifyType.StatusMessage);
 }
Esempio n. 14
0
 private void SearchBox_OnResultSuggestionChosen(SearchBox sender, SearchBoxResultSuggestionChosenEventArgs args)
 {
     NavigateToRepo(args.Tag);
 }
		private void Location_ResultSuggestionChosen(SearchBox sender, SearchBoxResultSuggestionChosenEventArgs args)
		{
			var geom = Esri.ArcGISRuntime.Geometry.Geometry.FromJson(args.Tag);
			if (LocationPicked != null)
				LocationPicked(this, geom);
		}
 private void SearchBox_OnResultSuggestionChosen(SearchBox sender, SearchBoxResultSuggestionChosenEventArgs args)
 {
     ((MainPageViewModel)DataContext).OnSearchPaneResultSuggestionChosen(sender, args);
     sender.QueryText = "";
 }
Esempio n. 17
0
 private void OnResultSuggestionChosen(SearchBox searchBox, SearchBoxResultSuggestionChosenEventArgs args)
 {
 }
Esempio n. 18
0
        private void OnSearchBoxResultSuggestionChosen(SearchBox sender, SearchBoxResultSuggestionChosenEventArgs args)
        {
            return;

            this.Frame.Navigate(typeof(ItemPage), int.Parse(args.Tag));
        }
 public void OnSearchPaneResultSuggestionChosen(SearchBox sender, SearchBoxResultSuggestionChosenEventArgs args)
 {
     var id = int.Parse(args.Tag);
     var result = _citiesRepository.Get(x => x.Id == id).Single();
     HandleAddCity(result);
 }
        private void SearchBoxEventsResultSuggestionChosen(SearchBox sender, SearchBoxResultSuggestionChosenEventArgs args)
        {
            var page = tabSource.ActiveTab.TabFrame.Content as PageCallBackInterface;

            page.SearchBoxEventsResultSuggestionChosen(sender, args);
        }
Esempio n. 21
0
 private void SearchBoxEventsResultSuggestionChosen(Object sender, SearchBoxResultSuggestionChosenEventArgs e)
 {
     MainPage.Current.NotifyUser("Result suggestion selected with tag: " + e.Tag, NotifyType.StatusMessage);
 }
        private void SearchBox_OnResultSuggestionChosen(SearchBox sender, SearchBoxResultSuggestionChosenEventArgs args)
        {
            var entry = Model.SubEntries.FirstOrDefault(e => e.Id == args.Tag);

            Frame.Navigate(typeof(EntryDetailPage), entry);
        }
 private void GroupSearchBox_OnResultSuggestionChosen(SearchBox sender, SearchBoxResultSuggestionChosenEventArgs args)
 {
     MoveButton.CommandParameter = args.Tag;
     MoveCommand.RaiseCanExecuteChanged();
 }
 /// <summary>
 /// The app- defined tag for the suggested result that the user selected.
 /// </summary>
 /// <param name="e">The requested <see cref="SearchBoxResultSuggestionChosenEventArgs"/>.</param>
 /// <returns>The app-defined tag for the selected search result.</returns>
 public static string Tag(this SearchBoxResultSuggestionChosenEventArgs e) => Resolver.Tag(e);
 private void EntrySearchBox_OnResultSuggestionChosen(SearchBox sender, SearchBoxResultSuggestionChosenEventArgs args)
 {
     Model.GoToEntry(args.Tag);
 }
 string ISearchBoxResultSuggestionChosenEventArgsResolver.Tag(SearchBoxResultSuggestionChosenEventArgs e) => e.Tag;
Esempio n. 27
0
        private void OnResultSuggestionChosen(SearchBox searchBox, SearchBoxResultSuggestionChosenEventArgs args)
        {

        }