1 write to _focus
PresentationCore (1)
System\Windows\Input\KeyboardDevice.cs (1)
373_focus = focus;
29 references to _focus
PresentationCore (29)
System\Windows\Input\KeyboardDevice.cs (29)
95return (IInputElement) _focus; 139return (IInputElement) _focus; 269DependencyObject oldFocus = _focus; // This is required, used below to see if focus has been delegated 271if(newFocus != _focus) 276if(askOld && _focus != null) 278KeyboardFocusChangedEventArgs previewLostFocus = new KeyboardFocusChangedEventArgs(this, timeStamp, (IInputElement)_focus, (IInputElement)newFocus); 280previewLostFocus.Source= _focus; 295KeyboardFocusChangedEventArgs previewGotFocus = new KeyboardFocusChangedEventArgs(this, timeStamp, (IInputElement)_focus, (IInputElement)newFocus); 341if( !changeFocus && forceToNullIfFailed && oldFocus == _focus /* Focus is not delegated */ ) 369if(focus != _focus) 372DependencyObject oldFocus = _focus; 405if(_focus != null) 407o = _focus; 436UIElement.FocusWithinProperty.OnOriginValueChanged(oldFocus, _focus, ref _focusTreeState); 444if(_focus != null) 447o = _focus; 453_TsfManager?.Focus(_focus); 458InputLanguageManager.Current.Focus(_focus, oldFocus); 469if(_focus != null) 471KeyboardFocusChangedEventArgs gotFocus = new KeyboardFocusChangedEventArgs(this, timestamp, (IInputElement) oldFocus, (IInputElement) _focus); 473gotFocus.Source= _focus; 479InputMethod.Current.GotKeyboardFocus(_focus); 483AutomationPeer.RaiseFocusChangedEventHelper((IInputElement)_focus); 568if( _focus == null ) 578DependencyObject element = _focus; 612if(element == _focus) 645UIElement.FocusWithinProperty.OnOriginValueChanged(_focus, _focus, ref _focusTreeState); 1004if(InputElement.GetRootVisual (_focus as DependencyObject) != _focusRootVisual)