How do you get a submit button in the Windows Phone keyboard?

前端 未结 2 820
-上瘾入骨i
-上瘾入骨i 2021-01-12 00:35

I want the white arrow to appear in my text input boxes so users have a way of forward other than tapping away from the keyboard or using the hardware Back button.

T

2条回答
  •  感情败类
    2021-01-12 00:51

    Also, I found that to get the white submit button that the search box has you can set the InputScope to "search":

    
    

    I still haven't figured out if this has any unintended side-effects.

    For good measure here is the code to dismiss the keyboard in the KeyUp event:

    void InputBox_KeyUp(object sender, System.Windows.Input.KeyEventArgs e)
    {
          if (e.Key == Key.Enter)
          {
               this.Focus();
          }
    }
    

提交回复
热议问题