void target_LostKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e) { SetSurroundShadows(false); }
protected override void OnLostKeyboardFocus(System.Windows.Input.KeyboardFocusChangedEventArgs e) { ChangeVisualState(true); base.OnLostKeyboardFocus(e); }
/// <summary> /// Event trigger to move to the highlighter once we move past the pen sizes /// </summary> private void PenSizeLostKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e) { HighlighterButton.Focus(); }
private void LstItemsAutoCompleteBox_GotKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e) { LstItemsAutoCompleteBox.SearchText = string.Empty; }
void Control_GotKeyboardFocus(object sender, sw.Input.KeyboardFocusChangedEventArgs e) { Control.SelectAll(); Control.GotKeyboardFocus -= Control_GotKeyboardFocus; }
/// <summary> /// Overridden method to set background color as White /// when keyboard focus lost from control /// </summary> /// <param name="e"></param> protected override void OnLostKeyboardFocus(System.Windows.Input.KeyboardFocusChangedEventArgs e) { base.OnLostKeyboardFocus(e); this.Background = Brushes.White; }
private static void ListBoxItem_PreviewGotKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e) { var listBoxItem = (ListBoxItem)sender; listBoxItem.IsSelected = true; }
protected internal virtual new void OnPreviewLostKeyboardFocus(System.Windows.Input.KeyboardFocusChangedEventArgs e) { }
private void MaskedTextBox_PreviewLostKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e) { MaskedTextBoxHelper.PreviewLostKeyboardFocus(sender, e); }
private void OnLostKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e) { MainWindow.getInstance().GainKeyboardFocus(); }
private void db_pass_GotKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e) { db_pass.SelectAll(); }
/// <summary> /// On lost focus. /// </summary> /// <param name="e">Event args</param> protected override void OnLostKeyboardFocus(System.Windows.Input.KeyboardFocusChangedEventArgs e) { tabtipHelper.TryKillTabtipProcess(); base.OnLostKeyboardFocus(e); }
private void Window_PreviewLostKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e) { logger.InfoFormat("{0:D3}.{1}", ++numberIndex, MethodBase.GetCurrentMethod().Name); }
private void AssociatedObjectGotKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e) { AssociatedObject.SelectAll(); }
private static void OnTextBoxGotKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e) { var control = (Control)sender; RemoveAdorner(control); }
private void AssociatedObject_GotKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e) { ShortcutController.BlockShortcutExecution = true; }
// The next three overrides change the selection behaviour of the text box as described in // 'How to SelectAll in TextBox when TextBox gets focus by mouse click?' // (http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/564b5731-af8a-49bf-b297-6d179615819f/) protected override void OnGotKeyboardFocus(System.Windows.Input.KeyboardFocusChangedEventArgs e) { SelectAll(); base.OnGotKeyboardFocus(e); }
private void downloadFolderTextBox_GotKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e) { downloadFolderTextBox.SelectAll(); }
protected override void OnLostKeyboardFocus(System.Windows.Input.KeyboardFocusChangedEventArgs e) { SetCurrentValue(MyContentProperty, Text); RaisePropertyChanged("MyContent"); base.OnLostKeyboardFocus(e); }
protected override void OnPreviewGotKeyboardFocus(System.Windows.Input.KeyboardFocusChangedEventArgs e) { e.Handled = !ShouldSelect(); base.OnPreviewGotKeyboardFocus(e); }
/// <summary> /// The Dateçocukdoğumtarihi_LostKeyboardFocus /// </summary> /// <param name="sender">The <see cref="object"/></param> /// <param name="e">The <see cref="System.Windows.Input.KeyboardFocusChangedEventArgs"/></param> private void Dateçocukdoğumtarihi_LostKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e) => Tarih.AyDüzGiriş(sender);
private void C_TextBox_PreviewLostKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e) { Helper.LeaveControl(sender as TextBox); }
private void ContentControl_LostKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e) { this.ContentControl.BorderThickness = new Thickness(Constant.Control.BorderThicknessNormal); this.ContentControl.BorderBrush = Constant.Control.BorderColorNormal; }
private void Hide(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e) { Suggestions1.Visibility = Visibility.Hidden; Suggestions2.Visibility = Visibility.Hidden; }
protected override void OnGotKeyboardFocus(System.Windows.Input.KeyboardFocusChangedEventArgs e) { _model.SelectedContent.IsActive = true; base.OnGotKeyboardFocus(e); }
private void OnGotKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs args) { base.DeliverEvent(sender, args); }
protected override void OnLostKeyboardFocus(System.Windows.Input.KeyboardFocusChangedEventArgs e) { }
private void PasswordBox_GotKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e) { PasswordBox tb = (PasswordBox)sender; tb.Dispatcher.BeginInvoke(new Action(() => tb.SelectAll())); }
private void TextBox_PreviewGotKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e) { (sender as TextBox).RequestBringIntoView += new RequestBringIntoViewEventHandler(xmlEditorTextBox_RequestBringIntoView); }
private void WatermarkComboBox_GotKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e) { }