Aarghhhhh!!! I just asked how to input numbers only and now I have the problem that when I insert a number with code such as:
tbNum.Text = Convert.ToString(double.Parse(tbPerc.Text));
The number is an int instead of a double. Therefore I get something like 5623 instead of 562,3. I have set InputScope to number if it helps. Thanks!!!
In facts I have some calculations inside the Convert.ToString method but this isn’t relevant because the returned value of a calculation between doubles is double.
If you’re using InputScope with Number set, then you’re using the “.” as decimal separator, not the “,” (that’s what appears in the keyboard)
As such, I assume your Windows Phone device / emulator is assuming the “,” sign as a thousands separator (the en-US default, per example) and as such: