搜索控制? [英] Search control ?

查看:61
本文介绍了搜索控制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家早上好,
我正在寻找一种WPF搜索控件,该控件类似于我们右下角的Outlook 2013中的控件,以搜索具有以下特征的人:

Good morning everybody,
I'm looking for a WPF search control similar to the one we have in Outlook 2013 at the bottom right to search people with the following characteristics :

  • 支持"ItemsSource"属性
  • 在修改文本(以更新ItemsSource)时,结果会显示在弹出窗口中
  • Fires事件中.
  • 使用向上键和&向下键可以在结果中导航
  • 在结果中导航不会修改文本框
  • 按"Enter"执行具有所选项目作为CommandParameter的Command
  • 按"Esc"删除文本和结果并关闭弹出窗口

我在网络上发现了很多wpf控件(尤其是在Nuget和Visual Studio Gallery上),但是它们并不能满足我的所有需求.

I found a lot of wpf controls on the web (especially on Nuget and Visual Studio Gallery) but they don't do all that I want.

我精确地说,我不是在寻找AutoCompleteBox.我想根据文本框中的文本从数据库中获取结果,并能够在按"Enter"键后启动命令(打开窗口)在选择中的项目上.我不 需要自动完成文本框.

I precise that I'm not looking for an AutoCompleteBox. I want to get results from a database depending on the text in the textbox and being able to start a command (open a window) after pressing "Enter" on an items in the selection. I don't need to autocomplete the textbox.

我正在尝试构建自己的自定义控件,但是如果您知道可以为我完成此操作的控件,可以给我发送一个链接吗?

I'm trying to build my own custom control but if you know one that can do that for me, can you please send me a link ?

预先感谢您的建议.

推荐答案

你好,

恐怕您应该建立自己的控制权来实现这些目标.您可以从这里开始:

I am afraid that you should build you own control to achieve these goals. You can start from here:

https://davidowens.wordpress.com/2009/02/18/wpf-search-text-box/

https://www.tutorialspoint.com/xaml/xaml_searchbox.htm

谢谢


这篇关于搜索控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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