Numeric input element with trigger of numeric keypads on mobile platforms
Posted: Wed Jul 27, 2016 2:47 am
Dear Sir,
We have a UI element with numeric input needs (e.g. 'Amount' = 1234).
Actually we use a simple textBox with manual validation (based on bool double.TryParse(string s, out double result)).
The only problem: the user have to change the virtual keyboard of mobile platform from text to numeric everytime -which is so uncomfortable/time consuming.
So, our questions: is there any way to:
-change virtual keyboard from text to numeric programmatically ?
or more better:
-use textbox or any other user input element, similar in HTML5:
<input type="number" name="quantity" min="1" max="5">
or at least:
<input type="number">
or even more better:
-to use/handle any external HTML5 UI element (similar to: as we can use external javascripts with CSHTML5.Interop.ExecuteJavaScript (), is it possible to embed native HTML5 coomponents in XAML code ? -yes I'm sure it will not work in Simulator, but who cares ?)
Really thanks for your kind reply,
Best Regards,
Péter
We have a UI element with numeric input needs (e.g. 'Amount' = 1234).
Actually we use a simple textBox with manual validation (based on bool double.TryParse(string s, out double result)).
The only problem: the user have to change the virtual keyboard of mobile platform from text to numeric everytime -which is so uncomfortable/time consuming.
So, our questions: is there any way to:
-change virtual keyboard from text to numeric programmatically ?
or more better:
-use textbox or any other user input element, similar in HTML5:
<input type="number" name="quantity" min="1" max="5">
or at least:
<input type="number">
or even more better:
-to use/handle any external HTML5 UI element (similar to: as we can use external javascripts with CSHTML5.Interop.ExecuteJavaScript (), is it possible to embed native HTML5 coomponents in XAML code ? -yes I'm sure it will not work in Simulator, but who cares ?)
Really thanks for your kind reply,
Best Regards,
Péter