VSearchBar
Search Bar Component
Basic Usage
Basic usage of the search bar.
<control:VSearchBar></control:VSearchBar>
Keyword
Set the Title to specify the keyword (title) content.
<control:VSearchBar Title="How to cook a delicious meal?"></control:VSearchBar>
Placeholder Text
Set the Placeholder to specify the placeholder text content.
<control:VSearchBar PlaceHolder="Enter order number"></control:VSearchBar>
Hide Search Button
Set the HasSearchButton property to False to hide the search button.
<control:VSearchBar HasSearchButton="False"></control:VSearchBar>
Search Button Icon
Set the IconText to specify the search button icon. The icon can be a Unicode character or an icon name. The default is \uF002 (magnifying glass).
<control:VSearchBar IconText=""></control:VSearchBar>
Title Color
Use the TitleColor property to set the title color.
<control:VSearchBar Title="How to cook a delicious meal?"
TitleColor="Brown"></control:VSearchBar>
Custom Content
Use ContentSlot to set the suffix content for the search bar.
Suffix with an icon and text:
<control:VSearchBar>
<control:VSearchBar.ContentSlot>
<HorizontalStackLayout HeightRequest="20">
<Label Text="powered by"></Label>
<Image Source="aze.png"
HorizontalOptions="Center"
VerticalOptions="Center"></Image>
<Label Text="Flaming!!!"></Label>
</HorizontalStackLayout>
</control:VSearchBar.ContentSlot>
</control:VSearchBar>