wpf TextBox禁用中文
前台
1.xmlns:input="clr-namespace:System.Windows.Input;assembly=PresentationCore"
2. <TextBox Name="NoteBody" Grid.Row="5" Margin="1" TextWrapping="Wrap" AcceptsReturn="True" MaxLength="200" InputMethod.IsInputMethodEnabled="False" TextChanged="NoteBody_TextChanged">
</TextBox>
后台禁用中英切换
**InputMethod.SetIsInputMethodEnabled(txtNote, false);**
txtNote.TextChanged += new TextChangedEventHandler(TxtNote_TextChanged);