1 write to _focus
PresentationCore (1)
System\Windows\Input\KeyboardDevice.cs (1)
382_focus = focus;
29 references to _focus
PresentationCore (29)
System\Windows\Input\KeyboardDevice.cs (29)
104return (IInputElement) _focus; 148return (IInputElement) _focus; 278DependencyObject oldFocus = _focus; // This is required, used below to see if focus has been delegated 280if(newFocus != _focus) 285if(askOld && _focus != null) 287KeyboardFocusChangedEventArgs previewLostFocus = new KeyboardFocusChangedEventArgs(this, timeStamp, (IInputElement)_focus, (IInputElement)newFocus); 289previewLostFocus.Source= _focus; 304KeyboardFocusChangedEventArgs previewGotFocus = new KeyboardFocusChangedEventArgs(this, timeStamp, (IInputElement)_focus, (IInputElement)newFocus); 350if( !changeFocus && forceToNullIfFailed && oldFocus == _focus /* Focus is not delegated */ ) 378if(focus != _focus) 381DependencyObject oldFocus = _focus; 414if(_focus != null) 416o = _focus; 445UIElement.FocusWithinProperty.OnOriginValueChanged(oldFocus, _focus, ref _focusTreeState); 453if(_focus != null) 456o = _focus; 462_TsfManager?.Focus(_focus); 467InputLanguageManager.Current.Focus(_focus, oldFocus); 478if(_focus != null) 480KeyboardFocusChangedEventArgs gotFocus = new KeyboardFocusChangedEventArgs(this, timestamp, (IInputElement) oldFocus, (IInputElement) _focus); 482gotFocus.Source= _focus; 488InputMethod.Current.GotKeyboardFocus(_focus); 492AutomationPeer.RaiseFocusChangedEventHelper((IInputElement)_focus); 577if( _focus == null ) 587DependencyObject element = _focus; 621if(element == _focus) 654UIElement.FocusWithinProperty.OnOriginValueChanged(_focus, _focus, ref _focusTreeState); 1013if(InputElement.GetRootVisual (_focus as DependencyObject) != _focusRootVisual)