Info
Version: | 1.1.1 |
Author(s): | Federico Navarrete;Ajith v Giri |
Last Update: | Sunday, June 16, 2019 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/Xamarin.Search.Dialog |
Install
Install-Package Xamarin.Search.Dialog
dotnet add package Xamarin.Search.Dialog
paket add Xamarin.Search.Dialog
Xamarin.Search.Dialog Download (Unzip the "nupkg" after downloading)
Based on:
https://github.com/ajithvgiri/search-dialog
Example:
var searchListItems = new List<SearchListItem>();
searchListItems.Add(new SearchListItem(1, "Tomatoes"));
searchListItems.Add(new SearchListItem(2, "Potatoes"));
searchListItems.Add(new SearchListItem(3, "Chili"));
//Context, List to display and Title
var searchableDialog = new SearchableDialog(this, SearchableDishes, "Search");
searchableDialog.OnSearchItemSelected = new SearchItemSelected();
searchableDialog.Show();
public class SearchItemSelected : Java.Lang.Object, IOnSearchItemSelected
{
public void OnClick(int p0, SearchListItem p1)
{
Toast.MakeText(this, p1.Title, ToastLength.Long).Show();
}
}.