Xamarin.Forms.Core 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.View Xamarin.Forms.IElementConfiguration<Xamarin.Forms.SearchBar> Xamarin.Forms.Internals.IFontElement Xamarin.Forms.ISearchBarController Xamarin.Forms.RenderWith(typeof(Xamarin.Forms.Platform._SearchBarRenderer)) A control that provides a search box. The following example shows a basic use. {resultsLabel.Text = "Result: " + searchBar.Text + " is what you asked for.";}) }; MainPage = new ContentPage { Content = new StackLayout { VerticalOptions = LayoutOptions.Start, Children = { new Label { HorizontalTextAlignment = TextAlignment.Center, Text = "SearchBar", FontSize = 50 }, searchBar, new ScrollView { Content = resultsLabel, VerticalOptions = LayoutOptions.FillAndExpand } }, Padding = new Thickness(10, Device.OnPlatform(20, 0, 0), 10, 5) } }; } // OnStart, OnSleep, and OnResume implementations, & etc. }]]> XAML for Xamarin.Forms supports the following properties for the class: Property Value CancelButtonColor A color specification, with or without the prefix, "Color". For example, "Color.Red" and "Red" both specify the color red. Placeholder The default text that will appear in the search bar when it is empty. SearchCommand XAML markup extension that describes a binding to a command. SearchCommandParameter The parameter for the search command. Text The initial text that will appear in the search bar. Constructor 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 Creates a new . To be added. Property 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.Color Gets or sets the color of the cancel button. To be added. To be added. Field 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty Backing store for the CancelButtonColor property. To be added. Property 1.5.0.0 2.0.0.0 Xamarin.Forms.FontAttributes Gets a value that indicates whether the font for the searchbar text is bold, italic, or neither. To be added. To be added. Field 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty Backing store for the FontAttributes property. To be added. Property 1.5.0.0 2.0.0.0 System.String Gets or sets the font family for the search bar text. To be added. To be added. Field 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty Backing store for the FontFamily property. To be added. Property 1.5.0.0 2.0.0.0 Xamarin.Forms.TypeConverter(typeof(Xamarin.Forms.FontSizeConverter)) System.Double Gets the size of the font for the text in the searchbar. To be added. To be added. Field 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty Backing store for the FontSize property. To be added. Property 1.5.0.0 2.0.0.0 Xamarin.Forms.TextAlignment Gets or sets the horizontal text alignment. To be added. To be added. Field 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty Backing store for the property. To be added. Method 2.0.0.0 Xamarin.Forms.IPlatformElementConfiguration<T,Xamarin.Forms.SearchBar> Xamarin.Forms.IConfigPlatform To be added. Returns the platform-specific instance of this , on which a platform-specific method may be called. To be added. To be added. Property 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 System.String Gets or sets the text that is displayed when the is empty. The text that is displayed when the is empty. To be added. Property 1.5.0.0 2.0.0.0 Xamarin.Forms.Color Gets or sets the color of the placheholder text. To be added. To be added. Field 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty Backing store for the property. To be added. Field 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty Backing store for the property. To be added. Event 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 System.EventHandler Event that is raised when the user presses the Search button. To be added. Property 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Windows.Input.ICommand Gets or sets the command that is run when the user presses Search button. The command that is run when the user presses Search button. To be added. Property 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Object Gets or sets the parameter that is sent to the . The parameter that is sent to the . To be added. Field 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty Backing store for the property. To be added. Field 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty Backing store for the property. To be added. Property 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 System.String Gets or sets the text that is displayed in the . The text that is displayed in the . To be added. Event 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 System.EventHandler<Xamarin.Forms.TextChangedEventArgs> Event that is raised when the property is changed. For example, this event is raised as the user edits the text in the SearchBar. To be added. Property 1.5.0.0 2.0.0.0 Xamarin.Forms.Color Gets or sets the text color. To be added. To be added. Field 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty Backing store for the property. To be added. Field 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty Backing store for the property. To be added. Method 2.0.0.0 System.Double To be added. To be added. To be added. Method 2.0.0.0 System.Void To be added. To be added. To be added. To be added. Method 2.0.0.0 System.Void To be added. To be added. To be added. To be added. Method 2.0.0.0 System.Void To be added. To be added. To be added. To be added. Method 2.0.0.0 System.Void To be added. To be added. To be added. To be added. Method 2.0.0.0 System.Void This method is for internal use. To be added.