Scrolling up the screen when Keyboard appears

537 views Asked by At

Is there a way to scroll-up view the required amount when the soft-keyboard shows up? The page in my app has a lot of textboxes and when the keyboard shows up, a lot of them hide under it and the user has to manually scroll down/hide keyboard to enter values in the other textboxes.

How can I scroll-up the page by some amount to improve UX?

1

There are 1 answers

3
Nishi On

You can have a KeyDown event set for each textbox and inside event handler check if Enter key is pressed shift focus to next textbox.

KeyDown="txtMessage1_KeyDown"

  private void txtMessage1_KeyDown(object sender, KeyEventArgs e)
    {
        if (e.Key == Key.Enter)
        {
          nextTextbox.Focus();
        }
    }