UWP检测屏幕键盘 [英] UWP detect On-Screen Keyboard
问题描述
有没有办法检测内部键盘是否可见并且页面向上移动了?
Is there a way to detect if the internal keyboard is visible and have the page shift up?
许多应用实现了类似的功能。
Many apps implement a similar function.
我有一些可以接受用户输入的文本框。然而,键盘有时会隐藏文本框,使其有点烦人。有没有办法在键盘启动时移动页面,然后在隐藏时恢复视图?
I have some text boxes that can accept user input. However the keyboard can sometimes hide the text box making it a little annoying. Is there a way to shift the page when the keyboard launches and then restore the view when hidden?
推荐答案
hi
基本上只要文本框/文本块有焦点就会显示键盘
basically the keyboard is shown as soon as a textbox/textblock has focus
所以要么GotFocus或者GettingFocus事件对滚动很有用一页或其他什么
so either the GotFocus or GettingFocus event is useful to scroll a page or whatever
br
Andre
br
Andre
这篇关于UWP检测屏幕键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!