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