即使显示了虚拟键盘,也将控件固定在固定位置吗? [英] Stick a control in fixed position even when the virtual keyboard is shown?

查看:89
本文介绍了即使显示了虚拟键盘,也将控件固定在固定位置吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好:

我想在屏幕顶部将控件添加为工具栏.但是,当我触摸屏幕上的文本框时,将显示虚拟键盘,将屏幕向上推,包括工具栏.当键盘处于打开状态时,如何将工具栏固定在原始位置 显示了吗?

I want to add a control as toolbar at the top of the screen. But when I touch a textbox in the screen, the virtual keyboard is shown, push the screen upside, including the toolbar. How can I stick the toolbar at the original position when the keyboard is shown?

推荐答案

基于先前的线程,如果创建工具栏时未将其添加到主视图树中,并且该工具栏覆盖了主页,则它将保留在该位置并可见.可以使用Popup控件.

Based on previous threads, if you create the toolbar without adding it to the main visual tree, and it overlays the main page, it will stay where it is and be visible.  The Popup control could be used. 

-马克


这篇关于即使显示了虚拟键盘,也将控件固定在固定位置吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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