Exemplo n.º 1
0
        public override void OnKeyPreview(ref Key key)
        {
            AbstractTextInputHandler textInputHandler = _textInputHandler;

            if (textInputHandler != null && IsEnabled)
            {
                textInputHandler.HandleInput(ref key);
            }
            base.OnKeyPreview(ref key);
        }
Exemplo n.º 2
0
        void OnHasFocusChanged(AbstractProperty prop, object oldValue)
        {
            AbstractTextInputHandler oldTextInputHandler = _textInputHandler;

            _textInputHandler = HasFocus ? CreateTextInputHandler() : null;
            if (oldTextInputHandler != null)
            {
                oldTextInputHandler.Dispose();
            }
            CheckTextCursor();
        }
Exemplo n.º 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);
        }
Exemplo n.º 4
0
 void OnHasFocusChanged(AbstractProperty prop, object oldValue)
 {
   AbstractTextInputHandler oldTextInputHandler = _textInputHandler;
   _textInputHandler = HasFocus ? CreateTextInputHandler() : null;
   if (oldTextInputHandler != null)
     oldTextInputHandler.Dispose();
   CheckTextCursor();
 }