如何在输入按键(WPF)上实现搜索按钮? [英] how to implement search button on enter key down (WPF) ?

查看:323
本文介绍了如何在输入按键(WPF)上实现搜索按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文本框和搜索按钮。当我在文本框中输入文本并按回车键时。

i想要在输入键的情况下搜索文本框中输入的文本的详细信息。怎么可能plz帮助我?

i have a textbox and Search button. when i entered a text into text box and press the enter key .
i want to search details of text entered in textbox with that enter key press .how could it possible plz help me?

推荐答案

您可以使用按钮的IsDefault属性:





搜索!
You can use the IsDefault property of the button:


Search!


http:// msdn.microsoft.com/en-us/library/ms752054(v=vs.110).aspx [ ^ ]


这篇关于如何在输入按键(WPF)上实现搜索按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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