Beispiel #1
0
        private static void InputLimitModeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            TextBoxEx textBoxEx = d as TextBoxEx;

            InputMethod.SetIsInputMethodEnabled(textBoxEx, (InputLimitMode)e.NewValue == InputLimitMode.None);
        }
Beispiel #2
0
        private static void IsInputMethodEnabledChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            TextBoxEx textBoxEx = d as TextBoxEx;

            InputMethod.SetIsInputMethodEnabled(textBoxEx, (bool)e.NewValue);
        }