如何在文本框中输入本地语言?
我想在特定的文本框中用我的本地语言(西班牙语或孟加拉语)编写任何文本,
请告诉我该怎么做?
谢谢。
i want to write any text in my local language (Spanish or Bengali) in a particular textBox
Please tell me how can i do that ?
Thank`s.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要查找“WPF 国际化”。有很多资源,包括优秀的 Microsoft 文档。
这是一个很好的起点:
.Net 中的国际化和 WPF
关键是:
为每种语言定义单独的资源
定义 UI 来查找每种语言的资源(而不是使用硬编码字符串)
PS:
就文本 INPUT 而言 - 用户可以输入任何内容他想要;她的电脑区域设置可以默认为任何可用的语言。
You need to look up "WPF internationalization". There are lots of resources, including excellent Microsoft documentation.
Here's a good place to start:
Internationalization in .Net and WPF
The key is:
Defining separate resources for each language
Defining your UI to look up the per-language resource (instead of using hard-coded strings)
PS:
As far as text INPUT - the user can enter anything he wants; her PC locale can default to any language available.
您需要相应地设置键盘语言,或者只是从谷歌翻译服务复制并粘贴。
You need to set your keyboard language accordingly or just copy and paste from the google translate services.