[英]How to dismiss focused of AutoSuggestBox in Windows Phone 8.1 Runtime?
I have a project using AutoSuggestBox, It is working well, however, I have some problems with this control. 我有一个使用AutoSuggestBox的项目,它运行良好,但是,此控件存在一些问题。 My problem has 2 question, but I apologize because I don't want to separate them and they are related to each other.
我的问题有2个问题,但我很抱歉,因为我不想将它们分开,并且它们彼此相关。 Here is my question:
这是我的问题:
These are my questions, if you are annoyed with its length, i apologize for that. 这些是我的问题,如果您对它的长度感到烦恼,对此我深表歉意。 I hope you guys can help me, thanks a lot!
希望你们能帮助我,非常感谢!
Instead of using TextChanged event try using QuerySubmitted and SuggestionChosen event it might resolve your problem. 与其使用TextChanged事件,不如尝试使用QuerySubmitted和RecommendationionChosen事件,它可以解决您的问题。 For your second question when new element gets focused on tap previous is automatically unfocused but if you want to handle it manually then use
对于第二个问题,当新元素专注于水龙头上一个元素时,它会自动失去焦点,但是如果您要手动处理它,请使用
MYSuggestBox.Focus(FocusState.UnFocused)
Hope it helps. 希望能帮助到你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.