1

I've use the "Digits" and "Numeric" input scopes on the emulator for windows phone7 but on the actual device it ends up being the default input scope.

How do I change it to "Numeric" on the actual device? Is there something that I'm missing?

Bob
  • 22,810
  • 38
  • 143
  • 225

2 Answers2

2

InputScope="TelephoneNumber" works on both Mango and NoDo.

Rich Hopkins
  • 1,861
  • 15
  • 29
  • If you're following my answer, there is no need to wait for Mango. This works in Mango AND NoDo (NoDo is what most people have now). – Rich Hopkins Aug 18 '11 at 15:57
  • I'll have to wait for the mango update to use the "Number" input scope, since it doesn't work on NoDo. In the mean time I'll use Telephone Number. –  Aug 19 '11 at 14:09
0

Here is the full code:

InputScope scope = new InputScope();
InputScopeName scopeName = new InputScopeName();
scopeName.NameValue = InputScopeNameValue.Number;
scope.Names.Add(scopeName);

tblInputField.Inputscope = scope;
laszlokiss88
  • 4,001
  • 3
  • 20
  • 26