コード例 #1
0
ファイル: WindowShadow.cs プロジェクト: liangminhua/wptools
 void target_LostKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e)
 {
     SetSurroundShadows(false);
 }
コード例 #2
0
 protected override void OnLostKeyboardFocus(System.Windows.Input.KeyboardFocusChangedEventArgs e)
 {
     ChangeVisualState(true);
     base.OnLostKeyboardFocus(e);
 }
コード例 #3
0
 /// <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();
 }
コード例 #4
0
 private void LstItemsAutoCompleteBox_GotKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e)
 {
     LstItemsAutoCompleteBox.SearchText = string.Empty;
 }
コード例 #5
0
 void Control_GotKeyboardFocus(object sender, sw.Input.KeyboardFocusChangedEventArgs e)
 {
     Control.SelectAll();
     Control.GotKeyboardFocus -= Control_GotKeyboardFocus;
 }
コード例 #6
0
 /// <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;
 }
コード例 #7
0
    private static void ListBoxItem_PreviewGotKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e)
    {
        var listBoxItem = (ListBoxItem)sender;

        listBoxItem.IsSelected = true;
    }
コード例 #8
0
 protected internal virtual new void OnPreviewLostKeyboardFocus(System.Windows.Input.KeyboardFocusChangedEventArgs e)
 {
 }
コード例 #9
0
 private void MaskedTextBox_PreviewLostKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e)
 {
     MaskedTextBoxHelper.PreviewLostKeyboardFocus(sender, e);
 }
コード例 #10
0
 private void OnLostKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e)
 {
     MainWindow.getInstance().GainKeyboardFocus();
 }
コード例 #11
0
 private void db_pass_GotKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e)
 {
     db_pass.SelectAll();
 }
コード例 #12
0
 /// <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);
 }
コード例 #13
0
ファイル: MainWindow.xaml.cs プロジェクト: secretmadonna/NEMS
 private void Window_PreviewLostKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e)
 {
     logger.InfoFormat("{0:D3}.{1}", ++numberIndex, MethodBase.GetCurrentMethod().Name);
 }
コード例 #14
0
 private void AssociatedObjectGotKeyboardFocus(object sender,
                                               System.Windows.Input.KeyboardFocusChangedEventArgs e)
 {
     AssociatedObject.SelectAll();
 }
コード例 #15
0
        private static void OnTextBoxGotKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e)
        {
            var control = (Control)sender;

            RemoveAdorner(control);
        }
コード例 #16
0
 private void AssociatedObject_GotKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e)
 {
     ShortcutController.BlockShortcutExecution = true;
 }
コード例 #17
0
        // 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);
        }
コード例 #18
0
 private void downloadFolderTextBox_GotKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e)
 {
     downloadFolderTextBox.SelectAll();
 }
コード例 #19
0
ファイル: MvvmTextEditor.cs プロジェクト: t14lab/MessageTree
 protected override void OnLostKeyboardFocus(System.Windows.Input.KeyboardFocusChangedEventArgs e)
 {
     SetCurrentValue(MyContentProperty, Text);
     RaisePropertyChanged("MyContent");
     base.OnLostKeyboardFocus(e);
 }
コード例 #20
0
ファイル: TabItem.xaml.cs プロジェクト: chencai01/iFactr-WPF
 protected override void OnPreviewGotKeyboardFocus(System.Windows.Input.KeyboardFocusChangedEventArgs e)
 {
     e.Handled = !ShouldSelect();
     base.OnPreviewGotKeyboardFocus(e);
 }
コード例 #21
0
 /// <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);
コード例 #22
0
 private void C_TextBox_PreviewLostKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e)
 {
     Helper.LeaveControl(sender as TextBox);
 }
コード例 #23
0
 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;
 }
コード例 #24
0
 private void Hide(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e)
 {
     Suggestions1.Visibility = Visibility.Hidden;
     Suggestions2.Visibility = Visibility.Hidden;
 }
コード例 #25
0
        protected override void OnGotKeyboardFocus(System.Windows.Input.KeyboardFocusChangedEventArgs e)
        {
            _model.SelectedContent.IsActive = true;

            base.OnGotKeyboardFocus(e);
        }
コード例 #26
0
 private void OnGotKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs args)
 {
     base.DeliverEvent(sender, args);
 }
コード例 #27
0
 protected override void OnLostKeyboardFocus(System.Windows.Input.KeyboardFocusChangedEventArgs e)
 {
 }
コード例 #28
0
ファイル: App.xaml.cs プロジェクト: GN-00/Projects-Now
        private void PasswordBox_GotKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e)
        {
            PasswordBox tb = (PasswordBox)sender;

            tb.Dispatcher.BeginInvoke(new Action(() => tb.SelectAll()));
        }
コード例 #29
0
 private void TextBox_PreviewGotKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e)
 {
     (sender as TextBox).RequestBringIntoView += new RequestBringIntoViewEventHandler(xmlEditorTextBox_RequestBringIntoView);
 }
コード例 #30
0
ファイル: WatermarkComboBox.cs プロジェクト: huytq1/smartCAML
 private void WatermarkComboBox_GotKeyboardFocus(object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e)
 {
 }