Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WP8 keyboard handling

How to handle page completely going up when clicking on the text box in WP8. (During the time of focus goes to textbox) and Keyboard renders.I want to block header(page frame) going out of screen.

like image 675
user1021583 Avatar asked Aug 01 '13 15:08

user1021583


1 Answers

This is a known issue.

You can use something like that https://siphelper.codeplex.com/.

Or write you own code (based on this page) to put the layout down when keyboard is appearing.

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.

However, this is a common behavior for the platform. Users are familiar with it.

like image 177
Anton Sizikov Avatar answered Nov 07 '22 14:11

Anton Sizikov