隐藏在屏幕键盘没有其他元素使用。重点() [英] Hide On Screen Keyboard without using .Focus() on another element

查看:67
本文介绍了隐藏在屏幕键盘没有其他元素使用。重点()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发的WindowsPhone 8平台上的屏幕键盘应用程序,模仿的功能。

I am developing an application for WindowsPhone 8 platform which mimics the functionality of on-screen key pad.

我想用文本框显示在屏幕上的字符和我使用的是使用按钮和事件所采取的另一种键盘要输入文字。

I want to use TextBox to display characters on the screen and I want to input text using another keypad which is implemented using buttons and events.

有是因为当我上文本框屏幕上的键盘总是放在第一位出现轻按一个问题。我知道的唯一办法禁用屏幕上的键盘在使用事件。重点()方法。这不适合我,因为如果文本框不集中,我不能动态地从它选择文本和它时,TextBox是填充不会自动向下滚动。是否有任何其他的方法来禁用屏幕上的键盘,同时保持对文本框的焦点还是有什么办法可以显示在屏幕上的键盘顶部的东西。我需要得到一些解决方案,因为这关系到我的最后一年的项目。

There is a problem because when I tap on the TextBox the on-screen key pad always appears on top of everything. The only way I know to disable the on-screen key pad is using .Focus() method in events. This is not suitable for me because if the TextBox is not focused I cannot dynamically select text from it and it is not automatically scroll down when the TextBox is filling up. Is there any other way to disable the on-screen key pad while keeping the focus on the TextBox or is there any way to display something on top of the on-screen keypad. I need to get some solution because this is related to my final year project.

推荐答案

似乎SomeElement.Focus()是你可以用它来隐藏屏幕键盘,其中SomeElement是唯一的出路一个可聚焦和一个非文本控件。在这个阶段,WindowsPhone的SDK的你不能做一些我的其他知识,并根据确认多线程和文章在这里SO或其他地方上网。

It seems that SomeElement.Focus() is the only way you can use to hide the On Screen Keyboard, where SomeElement is a Focusable and a non Text Control. At this stage of the WindowsPhone SDK you can't do something else at my knowledge and according to many confirming threads and articles here on SO or elsewhere on the internet.

这篇关于隐藏在屏幕键盘没有其他元素使用。重点()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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