Esempio n. 1
0
        private static void InputLimitModeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            TextBoxEx textBoxEx = d as TextBoxEx;

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

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