wp7 联系人的自动完成列表 [英] Auto-Complete list for contact for wp7

查看:24
本文介绍了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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆