How to remove the dot on keyboard in WP 8.1 when the InputScope is Number

782 Views Asked by At

In WP 8.1, I have a TextBox whose InputScope it set to Number. (InputScope="Number") However, this comes with a dot and I'd like to be able to remove it from the keyboard. I'd like the keyboard to have numerical values only as well as the backspace (clear) button.

1

There are 1 best solutions below

2
On

There is no way to alter the keyboard that specifically. You can set the keyboard for numbers but not specifically for integers. You'll have to filter the results as they are received (you need to do that anyway since text could be pasted). The TextChanged event is a good place to do this.