Xamarin.Forms by Microsoft

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

.NET API 2,249,088 bytes

 SearchBar

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 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 TextAlignment VerticalTextAlignment { get; set; }

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

public SearchBar()

Returns the platform-specific instance of this SearchBar, on which a platform-specific method may be called.

public void OnSearchButtonPressed()

For internal use by the Xamarin.Forms platform.