C# use search in listview code example
Example: list with search bar uwp c#
void OnBtnPressed(object sender,EventArgs ea)
{
var keyword = MainSearchBar.Text;
MainListView.ItemsSource =
names.Where(name => name.ToLower().Contains(keyword.ToLower()));
}