Пример #1
0
        public override void OnKeyPreview(ref Key key)
        {
            AbstractTextInputHandler textInputHandler = _textInputHandler;

            if (textInputHandler != null && IsEnabled)
            {
                textInputHandler.HandleInput(ref key);
            }
            base.OnKeyPreview(ref key);
        }
Пример #2
0
        void OnHasFocusChanged(AbstractProperty prop, object oldValue)
        {
            AbstractTextInputHandler oldTextInputHandler = _textInputHandler;

            _textInputHandler = HasFocus ? CreateTextInputHandler() : null;
            if (oldTextInputHandler != null)
            {
                oldTextInputHandler.Dispose();
            }
            CheckTextCursor();
        }
Пример #3
0
        internal override void OnKeyPreview(ref Key key)
        {
            // Clipboard handling is independent from actual input handler
            HandleClipboardKeys(ref key);
            AbstractTextInputHandler textInputHandler = _textInputHandler;

            if (textInputHandler != null && IsEnabled)
            {
                textInputHandler.HandleInput(ref key);
            }
            base.OnKeyPreview(ref key);
        }
Пример #4
0
 void OnHasFocusChanged(AbstractProperty prop, object oldValue)
 {
   AbstractTextInputHandler oldTextInputHandler = _textInputHandler;
   _textInputHandler = HasFocus ? CreateTextInputHandler() : null;
   if (oldTextInputHandler != null)
     oldTextInputHandler.Dispose();
   CheckTextCursor();
 }