Вопрос

So I am designing an app for Windows phone 8 and I was wondering if there is a way for me to have a text box where the user can search for some value in a data structure, and as the user is typing it will start giving them results, and as they are entering more text it will give less results as there will be less and less matches? I am thinking of using the textchanged event and search through the datas tructure constantly, but that seems like it will be very slow as it will be doing it after every new letter.

Это было полезно?

Решение

You should use the AutoCompleteBox from the Windows Phone Toolkit:

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top