WPF 应用程序的自动完成功能
我的 WPF 页面上有 20 个控件,它们绑定到静态资源“InsertClass”。在这 20 个中,有一个是买方文本框,用户可以在其中输入买方的姓名。现在,我需要的是,当用户开始输入时,他应该通过弹出或下拉列表获得建议列表,以便在买家已经存在的情况下他可以选择它。如果没有任何买家匹配,则会弹出“新买家”事件或链接。
我已将与此问题相关的三个文件上传到我的网盘上。下载 Desktop.arc 文件夹此处
让我知道您要做什么当向您提供此代码并要求您将自动完成功能添加到 NewRecord.xaml 中的 buyerText 控件时
I have 20 controls on my WPF page which are binded to a static resource "InsertClass". Out of those 20, one is a buyer texbox, on which user can enter the name of buyer. Now, what i require is that when a user starts entering, he should get a suggestion list via popup or dropdown list so that he can select it incase the buyer already exist. If there isn't any buyer matching, a "new buyer" event or link should popup.
I have uploaded the three files associated with this problem on my skydrive. Download the Desktop.arc folder HERE
Let me know what will you do when this code is given to you and are asked to add the auto-complete functionality to buyerText control in NewRecord.xaml
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论