WP8键盘处理

use*_*583 8 c# windows-phone-7 windows-phone windows-phone-8

单击WP8中的文本框时如何处理页面完全上升.(在焦点转到文本框期间)和键盘渲染.我想阻止标题(页面框架)离开屏幕.

Ant*_*kov 4

这是一个已知的问题。

\n\n

您可以使用类似的东西https://siphelper.codeplex.com/

\n\n

或者编写您自己的代码(基于此页面)以在键盘出现时放下布局。

\n\n
When SIP keyboard is rendered, PhoneApplicationFrame.TranslateTransform.Y \nis set to specific values (-259 in landscape orientation, -339 in portrait orientation). \nTo update layout, we\xe2\x80\x99ll just set top margin to the specified value(-s) and \nafter that Silverlight layout system will fix the issue.\n
Run Code Online (Sandbox Code Playgroud)\n\n

然而,这是平台的常见行为。用户对此很熟悉。

\n