[UWP] [VB]检测键盘可用性 [英] [UWP][VB]Detecting Keyboard Availability

查看:67
本文介绍了[UWP] [VB]检测键盘可用性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用户输入数值的应用。这可以使用我创建的键盘或一组按钮来完成。因为键盘是这个应用程序的首选,我想在键盘可用时自动隐藏我的按钮
以节省屏幕空间。如何检测键盘是否已连接?谢谢。



Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/

解决方案

< blockquote>

您好Nathan Sokalski,


您想要检测哪种类型的真实物理键盘?它似乎有USB键盘,蓝牙键盘和表面专业键盘。


如果我们检测到物理键盘在,我们可以使用InputPane.TryHide方法来隐藏键盘。




最好的问候,


Jayden Gu



I have an app in which the user inputs numeric values. This can be done using either the keyboard or a set of buttons I have created. Because the keyboard is preferred for this app, I would like to automatically hide my buttons when a keyboard is available to save screen space. How can I detect whether a keyboard is attached? Thanks.


Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/

解决方案

Hi Nathan Sokalski,

What type of real physical keyboard do you want to detect? It seems there are USB keyboard, the bluetooth keyboard and the keyboard in surface pro.

If we detect the physical keyboard is in, we can use the InputPane.TryHide method to hide the keyboard.


Best Regards,

Jayden Gu


这篇关于[UWP] [VB]检测键盘可用性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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