触摸键盘显示后点击/移动屏幕时,将控件保持在固定位置? [英] Keep a control in fixed postion when tap/move the sreen after touch keyboard shows?

查看:107
本文介绍了触摸键盘显示后点击/移动屏幕时,将控件保持在固定位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当触控键盘显示时,我想在控制键盘的顶部边框上添加一个控制权网格。


我已经通过设置键盘显示时的网格边距。但是当我点击/移动屏幕时,我的应用程序屏幕会被移动,包括网格。我可以设置任何属性,以便在这种情况下不会移动某些控件吗?


或者当触摸键盘显示时我应该处理点击移动的事件?

解决方案

您可以根据InputPane.OccludedRect属性将控件移动到正确的位置。


http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.viewmanagement.inputpane.occludedrect.aspx
$



InputPane.Showing - 通过滑入视图显示输入窗格时发生。


http: //msdn.microsoft.com/en-us/library/windows/apps/windows.ui.viewmanagement.inputpane.showing.aspx


I'd like to add a grid of control right attached to the top border of touch keyboard when the touch keyboard shows.

I've done it by setting the margin of grid when the keyboard shows. But when I tap/move the screen, my app screen
will be moved, including the grid. Can I set any property so that some control won't be moved in such case?
Or what event should I handle for the tap-move when touch keyboard shows?

解决方案

You can move your control to the correct location based on the InputPane.OccludedRect property.

http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.viewmanagement.inputpane.occludedrect.aspx

InputPane.Showing - Occurs when the input pane is about to be displayed by sliding into view.

http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.viewmanagement.inputpane.showing.aspx


这篇关于触摸键盘显示后点击/移动屏幕时,将控件保持在固定位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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