Reputation: 2639
I have a TextBox placed on the main page in a Windows Phone application. Once I tap it, a virtual keyboard is displayed by the OS. Is there a way to display decimal numbers once the keyboard comes up? This action would be equivalent to tapping &123 at the bottom left corner of the keyboard. The TextBox should accept only numbers.
Upvotes: 1
Views: 306
Reputation: 488
In your XAML code, change the input scope. For example:
<TextBox x:Name="expense" Margin="0,61,252,16" Text="Expense">
<TextBox.InputScope>
<InputScope>
<InputScopeName NameValue="Digits" />
</InputScope>
</TextBox.InputScope>
</TextBox>
Upvotes: 1