Use TextFilter if your ItemsSource is a collection of strings, and use ItemFilter if your ItemsSource is a collection with some other sort of object.For this let us create Country class, public class Country { public string countryname { get; set; } public string countrycode { get; set; } public Country(