Title: WPF模拟键盘输入相关问题
Author: Kagula
Date: 2015-11-02
允许TextBox输入中文(IME On,默认状态)
<TextBox Width="200" InputMethod.PreferredImeState="On"
InputMethod.IsInputMethodEnabled="True"
InputMethod.PreferredImeConversionMode="FullShape,Native"></TextBox>
禁止TextBox输入中文(IME Off)
<TextBox Width="200" InputMethod.PreferredImeState="Off"
InputMethod.IsInputMethodEnabled="False"></TextBox>
指定默认输入法为中文(IME On)
<TextBox Width="200" InputLanguageManager.InputLanguage="zh-CN"></TextBox>
枚举输入法