77 references to SearchHandler
Microsoft.Maui.Controls (77)
BindableObject.cs (1)
399 if (Shell.GetSearchHandler(this) is SearchHandler searchHandler)
Compatibility\Handlers\Shell\iOS\IShellSearchResultsRenderer.cs (1)
12 SearchHandler SearchHandler { get; set; }
Compatibility\Handlers\Shell\iOS\SearchHandlerAppearanceTracker.cs (14)
26 SearchHandler _searchHandler; 31 public SearchHandlerAppearanceTracker(UISearchBar searchBar, SearchHandler searchHandler, IFontManager fontManager) 82 if (e.Is(SearchHandler.BackgroundColorProperty)) 86 else if (e.Is(SearchHandler.TextColorProperty)) 90 else if (e.Is(SearchHandler.TextTransformProperty)) 94 else if (e.IsOneOf(SearchHandler.PlaceholderColorProperty, SearchHandler.PlaceholderProperty)) 98 else if (e.IsOneOf(SearchHandler.FontFamilyProperty, SearchHandler.FontAttributesProperty, SearchHandler.FontSizeProperty)) 102 else if (e.Is(SearchHandler.CancelButtonColorProperty)) 106 else if (e.Is(SearchHandler.KeyboardProperty)) 110 else if (e.Is(SearchHandler.HorizontalTextAlignmentProperty)) 114 else if (e.Is(SearchHandler.VerticalTextAlignmentProperty))
Compatibility\Handlers\Shell\iOS\ShellPageRendererTracker.cs (7)
62 SearchHandler _searchHandler; 580 SearchHandler SearchHandler 612 if (e.PropertyName == SearchHandler.ClearPlaceholderEnabledProperty.PropertyName) 614 else if (e.PropertyName == SearchHandler.SearchBoxVisibilityProperty.PropertyName) 616 else if (e.PropertyName == SearchHandler.IsSearchEnabledProperty.PropertyName) 618 else if (e.Is(SearchHandler.AutomationIdProperty)) 719 SearchHandler.SetValue(SearchHandler.QueryProperty, sc.SearchBar.Text);
Compatibility\Handlers\Shell\iOS\ShellSearchResultsRenderer.cs (2)
16 SearchHandler IShellSearchResultsRenderer.SearchHandler 87 private SearchHandler SearchHandler { get; set; }
Shell\SearchHandler.cs (46)
35 var element = (SearchHandler)bindable; 98 public static readonly BindableProperty KeyboardProperty = BindableProperty.Create(nameof(Keyboard), typeof(Keyboard), typeof(SearchHandler), Keyboard.Default, coerceValue: (o, v) => (Keyboard)v ?? Keyboard.Default); 145 public static readonly BindableProperty CancelButtonColorProperty = BindableProperty.Create(nameof(CancelButtonColor), typeof(Color), typeof(SearchHandler), default(Color)); 260 public static readonly BindableProperty BackgroundColorProperty = BindableProperty.Create(nameof(BackgroundColor), typeof(Color), typeof(SearchHandler), null); 309 public static readonly BindableProperty AutomationIdProperty = BindableProperty.Create(nameof(AutomationId), typeof(string), typeof(SearchHandler), null); 313 BindableProperty.Create(nameof(ClearIconHelpText), typeof(string), typeof(SearchHandler), null, BindingMode.OneTime, 314 propertyChanged: (b, o, n) => ((SearchHandler)b).UpdateAutomationProperties()); 318 BindableProperty.Create(nameof(ClearIconName), typeof(string), typeof(SearchHandler), null, BindingMode.OneTime, 319 propertyChanged: (b, o, n) => ((SearchHandler)b).UpdateAutomationProperties()); 323 BindableProperty.Create(nameof(ClearIcon), typeof(ImageSource), typeof(SearchHandler), null, BindingMode.OneTime); 327 BindableProperty.Create(nameof(ClearPlaceholderCommandParameter), typeof(object), typeof(SearchHandler), null, 332 BindableProperty.Create(nameof(ClearPlaceholderCommand), typeof(ICommand), typeof(SearchHandler), null, BindingMode.OneTime, 337 BindableProperty.Create(nameof(ClearPlaceholderEnabled), typeof(bool), typeof(SearchHandler), false); 341 BindableProperty.Create(nameof(ClearPlaceholderHelpText), typeof(string), typeof(SearchHandler), null, BindingMode.OneTime, 342 propertyChanged: (b, o, n) => ((SearchHandler)b).UpdateAutomationProperties()); 346 BindableProperty.Create(nameof(ClearPlaceholderIcon), typeof(ImageSource), typeof(SearchHandler), null, BindingMode.OneTime, 347 propertyChanged: (b, o, n) => ((SearchHandler)b).UpdateAutomationProperties()); 351 BindableProperty.Create(nameof(ClearPlaceholderName), typeof(string), typeof(SearchHandler), null, BindingMode.OneTime, 352 propertyChanged: (b, o, n) => ((SearchHandler)b).UpdateAutomationProperties()); 356 BindableProperty.Create(nameof(CommandParameter), typeof(object), typeof(SearchHandler), null, 361 BindableProperty.Create(nameof(Command), typeof(ICommand), typeof(SearchHandler), null, BindingMode.OneTime, 367 BindableProperty.Create(nameof(DisplayMemberName), typeof(string), typeof(SearchHandler), null, BindingMode.OneTime); 372 BindableProperty.Create(nameof(IsSearchEnabled), typeof(bool), typeof(SearchHandler), true, BindingMode.OneWay); 376 BindableProperty.Create(nameof(ItemsSource), typeof(IEnumerable), typeof(SearchHandler), null, BindingMode.OneTime, 381 BindableProperty.Create(nameof(ItemTemplate), typeof(DataTemplate), typeof(SearchHandler), null, BindingMode.OneTime); 385 BindableProperty.Create(nameof(QueryIconHelpText), typeof(string), typeof(SearchHandler), null, BindingMode.OneTime, 386 propertyChanged: (b, o, n) => ((SearchHandler)b).UpdateAutomationProperties()); 390 BindableProperty.Create(nameof(QueryIconName), typeof(string), typeof(SearchHandler), null, BindingMode.OneTime, 391 propertyChanged: (b, o, n) => ((SearchHandler)b).UpdateAutomationProperties()); 395 BindableProperty.Create(nameof(QueryIcon), typeof(ImageSource), typeof(SearchHandler), null, BindingMode.OneTime, 396 propertyChanged: (b, o, n) => ((SearchHandler)b).UpdateAutomationProperties()); 400 BindableProperty.Create(nameof(Query), typeof(string), typeof(SearchHandler), null, BindingMode.TwoWay, 405 BindableProperty.Create(nameof(SearchBoxVisibility), typeof(SearchBoxVisibility), typeof(SearchHandler), SearchBoxVisibility.Expanded, BindingMode.OneWay); 408 BindableProperty.CreateReadOnly(nameof(SelectedItem), typeof(object), typeof(SearchHandler), null, BindingMode.OneWayToSource); 415 BindableProperty.Create(nameof(ShowsResults), typeof(bool), typeof(SearchHandler), false, BindingMode.OneTime); 610 var self = (SearchHandler)bindable; 618 ((SearchHandler)bindable).OnClearPlaceholderCommandParameterChanged(); 623 var self = (SearchHandler)bindable; 631 ((SearchHandler)bindable).OnCommandParameterChanged(); 646 var self = (SearchHandler)bindable; 655 var searchHandler = (SearchHandler)bindable;
Shell\Shell.cs (6)
91 BindableProperty.CreateAttached("SearchHandler", typeof(SearchHandler), typeof(Shell), null, BindingMode.OneTime, 96 if (oldValue is SearchHandler oldHandler) 98 if (newValue is SearchHandler newHandler) 301 public static SearchHandler GetSearchHandler(BindableObject obj) => (SearchHandler)obj.GetValue(SearchHandlerProperty); 309 public static void SetSearchHandler(BindableObject obj, SearchHandler handler) => obj.SetValue(SearchHandlerProperty, handler);