Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当用户在文本框中键入任何内容时,我不知道如何获取联系人的自动完整列表。我对此一无所知。我研究了很多地方,但没有取得任何成果。例如,我还添加了一张图片。谁能帮我这个?在此先感谢您的帮助!
AutoCompleteBox从下载Silverlight Toolkit。将所有联系人加载到AutoCompleteBox.ItemsSource. 设置ValueMemberPath="propertyName"为包含手机的属性(即您搜索的)或制作您自己的过滤条件 ( AutoCompleteBox.ItemFilter += ...)
AutoCompleteBox
Silverlight Toolkit
AutoCompleteBox.ItemsSource
ValueMemberPath="propertyName"
AutoCompleteBox.ItemFilter += ...
或者
ListBox在下方创建TextBox并订阅TextBox.TextChanged事件。通过过滤手动ListBox处理项目TextBox.Text
ListBox
TextBox
TextBox.TextChanged
TextBox.Text