【问题标题】:Block Soft Panel Input language switch块软面板输入语言切换
【发布时间】:2012-11-14 17:09:31
【问题描述】:

如何让屏幕键盘只使用英文,即使设置选择了英文以外的一些其他语言?

【问题讨论】:

    标签: windows-phone-7 on-screen-keyboard


    【解决方案1】:

    抱歉,您无法在 WP7 上更改代码中的键盘语言。

    更新

    我对从应用线程中提取当前语言(区域设置)进行了一些研究,并提出了这篇关于代码中应用内语言选择的帖子。这看起来像是为本地化文本而设计的,但是,我有预感键盘语言会效仿。祝你好运!

    http://dotnetbyexample.blogspot.com/2011/07/mvvmlight-based-language-selection-for.html

    Thread.CurrentThread.CurrentUICulture = new CultureInfo(CurrentLanguage.Locale);
          Thread.CurrentThread.CurrentCulture = Thread.CurrentThread.CurrentUICulture;
    

    【讨论】:

    • 也许有办法检查语言按钮是否被点击?
    • 不幸的是,在键盘上切换语言不会影响 Thread.CurrentThread.CurrentUICulture 和 Thread.CurrentThread.CurrentCulture 属性
    • 我需要防止在TextBox中输入非拉丁字符
    猜你喜欢
    • 1970-01-01
    • 2017-12-06
    • 2015-06-12
    • 2010-11-18
    • 2017-04-26
    • 1970-01-01
    • 1970-01-01
    • 2013-02-23
    • 1970-01-01
    相关资源
    最近更新 更多