Implement search like the People search

两盒软妹~` 提交于 2019-12-06 08:33:08

问题


Is there an implementation/example of the Windows Phone native search in the People hup ? (shows a ListBox and typing in the SearchBox will filter the people in the list, and highlighting the matching texts). I was especially looking for a modification of the Windows Phone Toolkit AutocompleteBox.

If nothing exists already, what would I need to do to mix the Toolkit LongListSelector with AutoCompleteBox (replacing the autocomplete popup with a filtering of a list) ?


回答1:


I haven't seen anything, because it's so easy to implement. As for implementing it with the LongListSelector and a AutoCompleteBox, you should simply use either a CollectionViewSource or having a original, and filtered, data source, where the active displays the filtered items.



来源:https://stackoverflow.com/questions/8373294/implement-search-like-the-people-search

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!