user1617141
user1617141

Reputation: 115

AutoCompleteBox Take TOP10 or start populating when 3 letters

I have AutoCompleteBox with itemssource binding to collection. Now, in textChanged evend I'd like to populate when:

myAC.ItemsSource = myList.Where(x => x.name.Contains(myAC.Text)).Take(10);

Unfortunately, with this solution I cannot change selected item(actually when I press up/down arrow I can select only first and last item).

Thanks!

Upvotes: 1

Views: 127

Answers (1)

MaheshMajeti
MaheshMajeti

Reputation: 187

You can use MinimumPrefixLengthProperty property of autocompletebox to show results if text length >3.

Upvotes: 1

Related Questions