如何使虚拟键盘不覆盖UI [英] How to make virtual keyboard not cover the UI
问题描述
大家好,
问题在于我想拥有这样的用户界面。
The problem is that I want to have an UI like this.
顶部是一个文本框,底部是我的自定义栏 - 它存储笑脸按钮,位置按钮,图像选择器按钮......等。
The top is a textbox and bottom is my custom bar - it stores smiley button, location button, image chooser button...etc..
它们位于同一网格中。当文本框获得焦点时,虚拟键盘会显示并覆盖堆栈面板。我想要的是虚拟键盘向上推动堆栈面板 - 栏 - 。任何人都有解决这个案子?非常感谢。 :)
They are in a same grid. When the textbox got focus the virtual keyboard show up and cover the stack pannel. What I want is that the virtual keyboard push up the stack pannel - the bar - . Anyone have solution for this case? Thank you so much. :)
< grid> // LayoutRoot
<grid> //LayoutRoot
< grid row 1>
<grid row 1>
< textbox row 0 top>
<textbox row 0 top>
< ;堆叠面板行1方向水平底部>
<stack pannel row 1 orientation horizontal bottom>
< button />
<button/>
< button />
<button/>
< button />
<button/>
< button />
<button/>
< button />
<button/>
< / stack pannel>
</stack pannel>
< / grid>
</grid>
< / grid>
</grid>
推荐答案
HI @ DucBM051291,这是Windows Phone的正常行为。如果文本框接近底部,则虚拟键盘将覆盖它。因为您需要完全访问键盘。
HI @DucBM051291, this is the normal behavior of Windows Phone. If the textbox is close to bottom the virtual keyboard will overrides it. Because you need full access to keyboard.
问候。
这篇关于如何使虚拟键盘不覆盖UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!