From the Name
property setter in your viewmodel to which toolkit:AutoCompleteBox.Text
is bound, you will have to filter the ObservableCollection backing your Collectionview
i,e ItemsSource
of your ItemsControl
.
If you have your Collectionsource with you then you can have filter applied to it like below:
ICollectionView _peopleView = CollectionViewSource.GetDefaultView(peoples);
_peopleView .Filter = PeopleFilter
private bool PeopleFilter(object item)
{
People people= item as People;
return people.Name.Contains( _filterString ); //Here filter string will be your Name prperty value
}
From Setter of name property you will hav to call _peopleView .Refresh()
; to apply the filter
Thanks