protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e) { base.OnLostKeyboardFocus(e); LostFocusImpl(); }
protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e) { ShouldReceiveKeyboardNavigation = false; e.Handled = true; }
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(); }
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(); }
private static void LostKeyboardFocusClass(Actor sender, KeyboardFocusChangedEventArgs e) { if (sender != null) sender.OnLostKeyboardFocus(e); }
private void txt_focus(object sender, KeyboardFocusChangedEventArgs e) { TextBox tb = sender as TextBox; tb.Background = new SolidColorBrush(Colors.Transparent); }
/// <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); }
protected virtual void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e) { throw new NotImplementedException(); }
void SplitButton_GotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e) { }
protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e) { this.textBoxView.LostFocus(); base.OnLostKeyboardFocus(e); }
private void PlayTime_GotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e) => PlayTime.Text = "";
void VisualElement_GotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e) => InitializeIME();
private void PlayTime_LostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e) => TextBoxChanged();
private void AssociatedObjectGotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e) { AssociatedObject.SelectAll(); }
private void textBox_LostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e) { // My code goes here }
protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e) { base.OnLostKeyboardFocus(e); //WDTDH }
private void FilenameTemplate_PreviewLostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e) { e.Handled = !ViewModel.FilenameTemplateValidate(((TextBox)e.Source).Text); }
// Tracks focus of input boxes to show tip text protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e) { ShowTipText(e.OriginalSource as Control); base.OnGotKeyboardFocus(e); }
private static void OnGotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e) { ((UIElement)sender).IsKeyboardFocused = e.OriginalSource == sender; ((UIElement)sender).IsKeyboardFocusWithin = true; ((UIElement)sender).OnGotKeyboardFocus(e); }
void OnLostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e) { TextArea.Caret.Hide(); UpdateCurrentLineColors(true); }
private static void OnLostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e) { ((UIElement)sender).IsKeyboardFocused = false; ((UIElement)sender).IsKeyboardFocusWithin = false; ((UIElement)sender).OnLostKeyboardFocus(e); }
protected override void OnPreviewLostKeyboardFocus(KeyboardFocusChangedEventArgs e) { base.OnPreviewLostKeyboardFocus(e); _lastDataGridFocus = Keyboard.FocusedElement; }
protected virtual void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e) { // }
private void Genius_LostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e) { this.Genius.Focus(); }
// 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); }
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; } }
// Returns to trimming and showing ellipsis. protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e) { _internalEnabled = true; PrepareForLayout(); base.OnLostKeyboardFocus(e); }
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; } }
protected virtual void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e) { }