43 references to SearchBar
Microsoft.Maui.Controls (27)
Hosting\AppHostBuilderExtensions.cs (2)
81 handlersCollection.AddHandler<SearchBar, SearchBarHandler>(); 259 SearchBar.RemapForControls();
PlatformConfiguration\iOSSpecific\SearchBar.cs (4)
9 using FormsElement = Microsoft.Maui.Controls.SearchBar; 30 public static UISearchBarStyle GetSearchBarStyle(this IPlatformElementConfiguration<iOS, FormsElement> config) 36 public static IPlatformElementConfiguration<iOS, FormsElement> SetSearchBarStyle( 37 this IPlatformElementConfiguration<iOS, FormsElement> config, UISearchBarStyle style)
PlatformConfiguration\WindowsSpecific\SearchBar.cs (7)
8 using FormsElement = Maui.Controls.SearchBar; 30 public static bool GetIsSpellCheckEnabled(this IPlatformElementConfiguration<Windows, FormsElement> config) 36 public static IPlatformElementConfiguration<Windows, FormsElement> SetIsSpellCheckEnabled( 37 this IPlatformElementConfiguration<Windows, FormsElement> config, bool value) 44 public static bool IsSpellCheckEnabled(this IPlatformElementConfiguration<Windows, FormsElement> config) 50 public static void EnableSpellCheck(this IPlatformElementConfiguration<Windows, FormsElement> config) 56 public static void DisableSpellCheck(this IPlatformElementConfiguration<Windows, FormsElement> config)
SearchBar\SearchBar.cs (10)
13 public partial class SearchBar : InputView, ITextAlignmentElement, ISearchBarController, IElementConfiguration<SearchBar>, ICommandElement, ISearchBar 17 nameof(SearchCommand), typeof(ICommand), typeof(SearchBar), null, 22 nameof(SearchCommandParameter), typeof(object), typeof(SearchBar), null, 29 public static readonly BindableProperty CancelButtonColorProperty = BindableProperty.Create(nameof(CancelButtonColor), typeof(Color), typeof(SearchBar), default(Color)); 32 public static readonly BindableProperty SearchIconColorProperty = BindableProperty.Create(nameof(SearchIconColor), typeof(Color), typeof(SearchBar), default(Color)); 75 readonly Lazy<PlatformConfigurationRegistry<SearchBar>> _platformConfigurationRegistry; 84 /// Gets or sets the color of the search icon in the <see cref="SearchBar"/>. 125 _platformConfigurationRegistry = new Lazy<PlatformConfigurationRegistry<SearchBar>>(() => new PlatformConfigurationRegistry<SearchBar>(this)); 152 public IPlatformElementConfiguration<T, SearchBar> On<T>() where T : IConfigPlatform
SearchBar\SearchBar.Mapper.cs (2)
15 SearchBarHandler.Mapper.ReplaceMapping<SearchBar, ISearchBarHandler>(nameof(Text), MapText); 16 SearchBarHandler.Mapper.ReplaceMapping<SearchBar, ISearchBarHandler>(nameof(TextTransform), MapText);
SearchBar\SearchBar.Standard.cs (2)
6 public static void MapText(SearchBarHandler handler, SearchBar searchBar) => 9 public static void MapText(ISearchBarHandler handler, SearchBar searchBar) { }
Microsoft.Maui.Controls.Compatibility (16)
iOS\Renderers\SearchBarRenderer.cs (16)
16 public class SearchBarRenderer : ViewRenderer<SearchBar, UISearchBar> 60 protected override void OnElementChanged(ElementChangedEventArgs<SearchBar> e) 108 if (e.PropertyName == SearchBar.PlaceholderProperty.PropertyName || e.PropertyName == SearchBar.PlaceholderColorProperty.PropertyName) 116 else if (e.PropertyName == SearchBar.TextColorProperty.PropertyName) 118 else if (e.IsOneOf(SearchBar.TextProperty, SearchBar.TextTransformProperty, 119 SearchBar.CharacterSpacingProperty)) 124 else if (e.PropertyName == SearchBar.CancelButtonColorProperty.PropertyName) 126 else if (e.PropertyName == SearchBar.FontAttributesProperty.PropertyName) 128 else if (e.PropertyName == SearchBar.FontFamilyProperty.PropertyName) 132 else if (e.PropertyName == SearchBar.FontSizeProperty.PropertyName) 134 else if (e.PropertyName == SearchBar.HorizontalTextAlignmentProperty.PropertyName) 136 else if (e.PropertyName == SearchBar.VerticalTextAlignmentProperty.PropertyName) 210 ElementController.SetValueFromRenderer(SearchBar.TextProperty, null); 367 ElementController?.SetValueFromRenderer(SearchBar.TextProperty, _typedText);