SearchBox.ChooseSuggestionOnEnter属性 [英] SearchBox.ChooseSuggestionOnEnter property

查看:87
本文介绍了SearchBox.ChooseSuggestionOnEnter属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据文档,该属性"获取或设置一个值,该值确定当用户按下Enter"时是否激活建议的搜索查询。它默认为false。

According to the docs, this property "gets or sets a value that determines whether the suggested search query is activated when the user presses Enter". It defaults to false.

好吧,显然我是愚蠢的(再次)。 "激活"与"激活"之间的区别是什么?和"提交"?因为我是将此属性设置为true还是false,如果我在SearchBox文本具有焦点时按Enter键,或者当我将
缩减到其中一个建议时按Enter键,则会触发QuerySubmitted事件并且我转到搜索结果页面。

Well, apparently I'm being dumb (again). What's the difference between "activated" and "submitted"? Because whether I set this property to true or false, if I press Enter while the SearchBox text has focus, or press Enter when I've cursored down to one of the suggestions, the QuerySubmitted event is triggered and I go to the search results page.

所以有人知道这个属性控制的是什么吗?这显然不是我期望它控制的......

So does anybody know what, exactly, this property controls? It's clearly not what I expect it to control....

Rebecca M. Riordan

Rebecca M. Riordan

推荐答案

我不能在周末详细研究这个问题,但是当猜测搜索框没有焦点时,我猜它会控制行为。 

I cannot look into this in detail over the weekend, but I'd guess it to control the behaviour when the SearchBox doesn't have focus. 


这篇关于SearchBox.ChooseSuggestionOnEnter属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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