On screen keyboard is hiding content

2019-05-30 00:48发布

问题:

I have an autocomplete text box that when typed in will show results in a popup directly below itself.

But when the user is using a virtual keyboard as soon as the keyboard shows it will scroll the the bottom of the textbox, This hides the results from showing when they appear.

Is there a way for me to get around this?

The only way i can think of is to set the vertical offset of the popup on each keypress that will position it above the textbox instead of below. But this is not how i would like it to work, i would much prefer the results to push the keyboard down or to scroll up the page.

回答1:

I was having the same issue, I found this helpful: http://code.msdn.microsoft.com/windowsapps/Keyboard-Events-Sample-866ba41c