Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
现在在我的应用程序中,我有一个用于输入金额的文本框。由于数量总是处理数字,我只是不喜欢在 TextBox 处于焦点时弹出普通(字符)键盘。我应该怎么做,这样当我单击我的 TextBox 时,屏幕键盘上的数字应该会出现在我面前。
提前致谢
使用InputScope属性指示必须显示哪种键盘。
例如,要显示数字键盘:
<TextBox InputScope="Number" />