Is there way of modifying the TextChanged event for a TextBox
to ignore the case that has been entered? Currently in my ListView (containing town names) with a TextBox I want to search for any town name I want without having to use capital letters.
private void txtSearch_TextChanged(object sender, TextChangedEventArgs e)
{
if (string.IsNullOrEmpty(txtSearch.Text))
{
this.ListTowns.ItemsSource = this.listItemTowns;
}
this.ListTowns.ItemsSource = this.listTowns.Where((item) => { return item.TownTitle.Contains(txtSearch.Text); });
}