wp7 联系人的自动完成列表 [英] Auto-Complete list for contact for wp7
问题描述
当用户在文本框中键入任何内容时,我不知道如何获取自动完成的联系人列表.我对此一无所知.我研究了很多地方,但什么也做不了.例如,我还添加了一个图像.谁能帮我这个?预先感谢您的帮助!
I don't know how to get the auto complete list of contacts when the user types anything on the textbox. I am not getting any idea for this. I have researched a lot of place but could not achieve anything. i have also added an image for example. Can anyone help me with this? Thanks in advance for your help!
推荐答案
从 Silverlight Toolkit
下载 AutoCompleteBox
.将所有联系人加载到 AutoCompleteBox.ItemsSource
.将 ValueMemberPath="propertyName"
设置为包含手机(即您搜索的)的属性或创建您自己的过滤条件(AutoCompleteBox.ItemFilter += ...
)
Download AutoCompleteBox
from Silverlight Toolkit
. Load all contacts into AutoCompleteBox.ItemsSource
. Set ValueMemberPath="propertyName"
to property that contains mobile phone (i.e. that you search for) or make your own filter criteria (AutoCompleteBox.ItemFilter += ...
)
或
在TextBox
下方创建ListBox
并订阅TextBox.TextChanged
事件.通过 TextBox.Text
Create ListBox
below TextBox
and subscribe to TextBox.TextChanged
event. Make ListBox
items handling manually with filtering by TextBox.Text
这篇关于wp7 联系人的自动完成列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!