如何在数字键盘中显示点而不是逗号 [英] How to display dot instead of comma in numeric keyboard

查看:403
本文介绍了如何在数字键盘中显示点而不是逗号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发在不同国家/地区使用的Windows手机应用程序。巴西,土耳其等国家使用逗号(,)作为小数分隔符而不是Dot(。)。有没有办法在所有区域的数字键盘中显示点(。)而不是逗号(,)。
我可以在textchanged事件中处理它,但是我的应用程序有很多带有数字键盘的文本框而不是这样做是否有任何方法可以在全局范围内完成并反映整个文本框。

I am developing windows phone application it is used in different countries. Countries such as Brazil,Turkey uses Comma(,) as decimal separator instead of Dot(.). Is there any way to display dot(.) in numeric keyboard for all the regions instead of Comma(,). I can handle it in textchanged event but my application has many textbox's with numeric keyboard instead of doing that is there any way to do it once globally and reflects entire textbox.

谢谢提前。

谢谢,

Punith

推荐答案

您好,Alok varma,

Hi Alok varma,

我不确定您为什么要为区域设置错误的分隔符?这可能是对语言环境中实际问题的错误解决方案。请小心。

I am not sure why do you want the wrong separator for the locale? That's probably the wrong solution to the actual problem on the locale. Please be careful for it.

如果你有很多TextBox使用点而不是逗号,我建议你创建一个自定义控件,比如UserControl巫婆实现点而不是逗号,然后你在代码中使用自定义控件来替换TextBox,这样你就不需要
在每个TextBox中更改它。

If you have many the TextBox using dot instead of comma, I suggest you to create a custom control such as the UserControl witch implements dot instead of comma, then you use the custom control in your code to replace the TextBox, so that you don't need to change it in every TextBox.

祝你好运,

Breeze


这篇关于如何在数字键盘中显示点而不是逗号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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