2013-08-01 64 views
8

如何在WP8中點擊文本框時完全處理頁面。 (在焦點時間到文本框)和鍵盤渲染。我想阻止頁眉(頁面框架)走出屏幕。WP8鍵盤處理

回答

4

這是一個已知問題。

您可以使用類似的東西https://siphelper.codeplex.com/

或者編寫自己的代碼(based on this page),以便在出現鍵盤時放下佈局。

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. 

但是,這是平臺的常見行爲。用戶熟悉它。