如何在数字键盘c#xaml windows phone 8中添加e [英] how to add e in the number keyboard c# xaml windows phone 8

查看:80
本文介绍了如何在数字键盘c#xaml windows phone 8中添加e的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 文本框和数字键盘。

I have a textbox and number keyboard.

<TextBox x:Name="textBoxInput" InputScope="Number" HorizontalAlignment="Left" Height="65" Margin="0,514,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="480" BorderThickness="0" Background="#FF0A0000" Foreground="Red" TextChanged="textChanged_Input"/>

InputScope =" Number"正在给出数字键盘。 如果用户按"。"它会显示"。 , - "但不是"e"。

InputScope="Number" is giving the number keyboard.  If user press "." it will shows the ". , -" but not "e".

为什么数字键盘没有"e"?用户不能输入这样的数字,如1.253e-10。

Why the number keyboard does not have "e"? Users can not enter number like this 1.253e-10.

如何添加"e"?进入现有的数字键盘并获得" 。 , - e"在 "。" 按?

How can I add "e" into existing number keyboard and get " . , - e" on "." press?

请帮忙!

推荐答案

你可以使用" TelephoneAreaCode"。这将在长按时具有数字和支持文本。

请注意,键盘限制仅用于UI目的。用户可以复制粘贴该文本框中的任何文本。确保您有必要的验证。

Please note that the Keypad restriction is only for UI purpose. User can copy paste any text in that textbox. Make sure you have necessary validation for that.


这篇关于如何在数字键盘c#xaml windows phone 8中添加e的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆