我有一个应用程序,建议用户仅在文本框中输入数字。但是,在 textBox GotFocus-attribute 上,我最终得到了一个常规键盘。如何将其更改为电话拨号器输入或仅数字输入?
<TextBox
Grid.ColumnSpan="2"
Grid.Row="3"
Grid.Column="0"
FontSize="80"
FontWeight="Bold"
Height="130"
HorizontalAlignment="Center"
Width="200"
Margin="0,0,0,0"
Name="userAnswer"
Text=""
TextAlignment="Center"
VerticalAlignment="Stretch"
GotFocus="userAnswer_GotFocus"
Background="White"
Foreground="Black"
/>