Search code examples
windows-phone-7on-screen-keyboard

how to display on screen numeric keyboard in windows phone application


Now in my application, I have a Textbox for entering amount. As amount always deals with numbers, I just dont like a normal (character) keyboard poping up, when the TextBox is on focus. What should I do, so that when I click my TextBox, a numeric on screen keyboard should appear in front of me.

Thanks in advance


Solution

  • Use the InputScope property to indicate which kind of keyboard must be displayed.

    For instance, to display a numeric keyboard:

    <TextBox InputScope="Number" />