いくつかのシナリオは、次のような効果がある、テキストボックスはデフォルトの設定属性をサポートするので、開口部のIMEモード(インプットメソッドを禁止する)からユーザーを防ぐために必要があります。
<ウインドウは、x:クラス= " 切换输入法.MainWindow " のxmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " のxmlns:X = " http://schemas.microsoft.com/winfx / 2006 / XAML " のxmlns:D = " http://schemas.microsoft.com/expression/blend/2008 " のxmlns:MC = " http://schemas.openxmlformats.org/markup-compatibility/2006 」 のxmlns:ローカル = " CLR名前空間:切换输入法" MC:無視可能 = " D " 題名= " メインウィンドウ"高さ= " 225 "幅= " 400 " WindowStartupLocation = " 画面の中央" > <のStackPanel証拠金= " 10 " > <テキストボックステキスト= " 默认" > </テキストボックス> <テキストボックスInputMethod.PreferredImeState = " オン" InputMethod .PreferredImeConversionMode = " ネイティブ"テキスト= " 打开输入法" /> <TextBoxのInputMethod.PreferredImeState = "OFF "テキスト= " 閉じる入力" /> </ StackPanelの> </ウィンドウ]>