protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e)
 {
     base.OnLostKeyboardFocus(e);
     LostFocusImpl();
 }
示例#2
0
 protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e)
 {
     ShouldReceiveKeyboardNavigation = false;
     e.Handled = true;
 }
示例#3
0
        private void MyTextBox_LostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
        {
            TextBox myTextBox = sender as TextBox;

            UpdateIntoDB(Convert.ToInt32(myTextBox.Tag), myTextBox.Text);
        }
        private void OnTextBoxGotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
        {
            var textBox = (TextBox)sender;

            textBox.SelectAll();
        }
示例#5
0
 void VisualElement_LostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e) => StopIME(true);
 private void Ee_GotKeyboardFocus2(object sender, KeyboardFocusChangedEventArgs e)
 {
     p2.IsOpen = true;
 }
 /// <inheritdoc/>
 protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e)
 {
     base.OnLostKeyboardFocus(e);
     caret.Hide();
 }
示例#8
0
文件: Actor.cs 项目: jaquadro/MonoGdx
 private static void LostKeyboardFocusClass(Actor sender, KeyboardFocusChangedEventArgs e)
 {
     if (sender != null)
         sender.OnLostKeyboardFocus(e);
 }
示例#9
0
        private void txt_focus(object sender, KeyboardFocusChangedEventArgs e)
        {
            TextBox tb = sender as TextBox;

            tb.Background = new SolidColorBrush(Colors.Transparent);
        }
示例#10
0
 /// <inheritdoc/>
 protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
 {
     base.OnGotKeyboardFocus(e);
     caret.Show();
 }
 protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e)
 {
     Debug.WriteLine(string.Format("[{0}].OnLostKeyboardFocus() Source={1} NewFocus={2} OldFocus={3}", this.Name, e.Source.GetType().ToString(), e.NewFocus == null ? "<null>" : e.NewFocus.GetType().ToString(), e.OldFocus == null ? "<null>" : e.OldFocus.GetType().ToString()));
     base.OnLostKeyboardFocus(e);
 }
 private void TextBox_GotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
 {
     (sender as TextBox).SelectAll();
 }
 private void CBTxtBox_GotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
 {
     SelectContentOnFocus(CBTxtBox);
 }
示例#14
0
 protected virtual void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e)
 {
     throw new NotImplementedException();
 }
示例#15
0
 void SplitButton_GotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
 {
 }
示例#16
0
 protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e)
 {
     this.textBoxView.LostFocus();
     base.OnLostKeyboardFocus(e);
 }
示例#17
0
 private void PlayTime_GotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e) => PlayTime.Text = "";
示例#18
0
 void VisualElement_GotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e) => InitializeIME();
示例#19
0
 private void PlayTime_LostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e) => TextBoxChanged();
示例#20
0
 private void AssociatedObjectGotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
 {
     AssociatedObject.SelectAll();
 }
 private void textBox_LostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
 {
     // My code goes here
 }
示例#22
0
 protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e)
 {
     base.OnLostKeyboardFocus(e);
     //WDTDH
 }
示例#23
0
 private void FilenameTemplate_PreviewLostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
 {
     e.Handled = !ViewModel.FilenameTemplateValidate(((TextBox)e.Source).Text);
 }
示例#24
0
        // Tracks focus of input boxes to show tip text
        protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
        {
            ShowTipText(e.OriginalSource as Control);

            base.OnGotKeyboardFocus(e);
        }
示例#25
0
 private static void OnGotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
 {
     ((UIElement)sender).IsKeyboardFocused     = e.OriginalSource == sender;
     ((UIElement)sender).IsKeyboardFocusWithin = true;
     ((UIElement)sender).OnGotKeyboardFocus(e);
 }
示例#26
0
 void OnLostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
 {
     TextArea.Caret.Hide();
     UpdateCurrentLineColors(true);
 }
示例#27
0
 private static void OnLostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
 {
     ((UIElement)sender).IsKeyboardFocused     = false;
     ((UIElement)sender).IsKeyboardFocusWithin = false;
     ((UIElement)sender).OnLostKeyboardFocus(e);
 }
示例#28
0
 protected override void OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs e)
 {
     base.OnPreviewLostKeyboardFocus(e);
     _lastDataGridFocus = Keyboard.FocusedElement;
 }
示例#29
0
 protected virtual void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e)
 {
     //
 }
示例#30
0
 private void Genius_LostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
 {
     this.Genius.Focus();
 }
示例#31
0
 // Makes the entire text available for editing, selecting, and scrolling
 // until focus is lost.
 protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
 {
     _internalEnabled = false;
     SetText(LongText);
     base.OnGotKeyboardFocus(e);
 }
示例#32
0
        private void SetFocus(UIElement element)
        {
            if (element != this.target)
            {
                if (this.target != null)
                {
                    this.target.SetValue(UIElement.IsKeyboardFocusedProperty, false);

                    KeyboardFocusChangedEventArgs e = new KeyboardFocusChangedEventArgs();
                    e.OriginalSource = e.Source = this.target;
                    e.RoutedEvent = UIElement.LostKeyboardFocusEvent;
                    this.target.RaiseEvent(e);
                }

                if (element != null)
                {
                    element.SetValue(UIElement.IsKeyboardFocusedProperty, true);

                    KeyboardFocusChangedEventArgs e = new KeyboardFocusChangedEventArgs();
                    e.OriginalSource = e.Source = element;
                    e.RoutedEvent = UIElement.GotKeyboardFocusEvent;
                    element.RaiseEvent(e);
                }

                this.target = element;
            }
        }
示例#33
0
 // Returns to trimming and showing ellipsis.
 protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e)
 {
     _internalEnabled = true;
     PrepareForLayout();
     base.OnLostKeyboardFocus(e);
 }
示例#34
0
 protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e)
 {
     Stage stage = Stage;
     if (IsModal && stage != null && stage.Root.Children.Count > 0 && stage.Root.Children[stage.Root.Children.Count - 1] == this) {
         Actor newFocusedActor = e.NewFocus;
         if (newFocusedActor != null && !newFocusedActor.IsDescendentOf(this))
             e.Cancelled = true;
     }
 }
示例#35
0
文件: Actor.cs 项目: jaquadro/MonoGdx
 protected virtual void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e)
 {
 }