Код: Выделить всё
private void SearchBar_TextChanged(object sender, TextChangedEventArgs e)
{
StringComparison comparison = StringComparison.InvariantCultureIgnoreCase;
ItemsListView.ItemsSource = _viewModel.Tools.Where(x => x.ProductIndex.StartsWith(e.NewTextValue, comparison));
}
Я пробовал использовать «Contains()», но результат был тот же.
Подробнее здесь: https://stackoverflow.com/questions/790 ... th-in-linq