在WP8中,当单击文本框并且焦点转移到文本框时,页面完全上移并且键盘呈现。我希望阻止页眉(页面框架)跑出屏幕。
在WP8中,当单击文本框并且焦点转移到文本框时,页面完全上移并且键盘呈现。我希望阻止页眉(页面框架)跑出屏幕。
这是一个已知问题。
你可以使用像 https://siphelper.codeplex.com/ 这样的工具。
或者根据 此页面 编写自己的代码,在键盘出现时调整布局。
When SIP keyboard is rendered, PhoneApplicationFrame.TranslateTransform.Y
is set to specific values (-259 in landscape orientation, -339 in portrait orientation).
To update layout, we’ll just set top margin to the specified value(-s) and
after that Silverlight layout system will fix the issue.
然而,这是平台的常见行为。用户已经熟悉了它。