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