SearchBar

Inheritance: Element -> NavigableElement -> VisualElement -> View -> InputView Xamarin.Forms documentation: SearchBar API / Guide

For details on how the control actually works, please refer to the Xamarin.Forms documentation.

Constructors

Properties

Usages

SearchBar("Enter a description", TextChanged, SearchButtonPressed)
    .keyboard(Keyboard.Email)
    .cancelButtonColor(Color.Green.ToFabColor(), Color.White.ToFabColor())
    .textColor(Color.Red.ToFabColor(), Color.Blue.ToFabColor())
    .font(namedSize = NamedSize.Large, fontFamily = "Arial", attributes = FontAttributes.Bold)
    .textTransform(TextTransform.Lowercase)

Get access to the underlying Xamarin.Forms.SearchBar #

let searchBarRef = ViewRef<SearchBar>()

SearchBar("Enter a description", TexChanged, SearchButtonPressed)
    .reference(searchBarRef)

Last updated