开发者

Windows Phone 7 - Move Content above Keyboard

开发者 https://www.devze.com 2023-04-01 05:34 出处:网络
I have page containing 4 textboxes and a button. The content is within ScrollViewer. When user goes to the last textbox, the button below it is 50% visible. So, to click it, user has to click on non-f

I have page containing 4 textboxes and a button. The content is within ScrollViewer. When user goes to the last textbox, the button below it is 50% visible. So, to click it, user has to click on non-focusable area to hide the keyboard and then click on button.

Is there any way to move the ScrollViewer up? Or move the content up so that the开发者_开发技巧 button below focused textbox can be seen 100%?


The solution is to remove the buttons on the page and replace them with buttons in the ApplicationBar as this is always viewable below the SIP.

If this is not a solution you can implement (from a design view-point there is no reason to not do this but sometimes these decisions come from elsewhere) then you could look to use the ScrollToVerticalOffset method to try and bring the desired item into view.


I would suggest you read Alex Sorokoletov's article on how to transform the view. It might be of help for your problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消