Xamarin.Forms by Xamarin Inc.

<PackageReference Include="Xamarin.Forms" Version="2.1.0.6524" />

.NET API 760,320 bytes

 SearchBar

public class SearchBar : View, IFontElement
A View control that provides a search box.

Backing store for the CancelButtonColor property.

Backing store for the FontAttributes property.

public static readonly BindableProperty FontFamilyProperty

Backing store for the FontFamily property.

public static readonly BindableProperty FontSizeProperty

Backing store for the FontSize property.

Backing store for the HorizontalTextAlignment property.

Backing store for the PlaceholderColor property.

public static readonly BindableProperty PlaceholderProperty

Backing store for the Placeholder property.

Backing store for the SearchCommandParameter property.

public static readonly BindableProperty SearchCommandProperty

Backing store for the SearchCommand property.

public static readonly BindableProperty TextColorProperty

Backing store for the TextColor property.

public static readonly BindableProperty TextProperty

Backing store for the Text property.

public Color CancelButtonColor { get; set; }

Gets or sets the color of the cancel button.

public FontAttributes FontAttributes { get; set; }

Gets a value that indicates whether the font for the searchbar text is bold, italic, or neither.

public string FontFamily { get; set; }

Gets or sets the font family for the search bar text.

public double FontSize { get; set; }

Gets the size of the font for the text in the searchbar.

Gets or sets the horizontal text alignment.

public string Placeholder { get; set; }

Gets or sets the text that is displayed when the SearchBar is empty.

public Color PlaceholderColor { get; set; }

Gets or sets the color of the placheholder text.

public ICommand SearchCommand { get; set; }

Gets or sets the command that is run when the user presses Search button.

public object SearchCommandParameter { get; set; }

Gets or sets the parameter that is sent to the SearchCommand.

public string Text { get; set; }

Gets or sets the text that is displayed in the SearchBar.

public Color TextColor { get; set; }

Gets or sets the text color.

Event that is raised when the user presses the Search button.

Event that is raised when the Text property is changed. For example, this event is raised as the user edits the text in the SearchBar.

public SearchBar()