1 write to _focus
PresentationCore (1)
Core\CSharp\System\Windows\Input\KeyboardDevice.cs (1)
461
_focus
= focus;
29 references to _focus
PresentationCore (29)
Core\CSharp\System\Windows\Input\KeyboardDevice.cs (29)
131
return (IInputElement)
_focus
;
181
return (IInputElement)
_focus
;
347
DependencyObject oldFocus =
_focus
; // This is required, used below to see if focus has been delegated
349
if(newFocus !=
_focus
)
354
if(askOld &&
_focus
!= null)
356
KeyboardFocusChangedEventArgs previewLostFocus = new KeyboardFocusChangedEventArgs(this, timeStamp, (IInputElement)
_focus
, (IInputElement)newFocus);
358
previewLostFocus.Source=
_focus
;
374
KeyboardFocusChangedEventArgs previewGotFocus = new KeyboardFocusChangedEventArgs(this, timeStamp, (IInputElement)
_focus
, (IInputElement)newFocus);
423
if( !changeFocus && forceToNullIfFailed && oldFocus ==
_focus
/* Focus is not delegated */ )
457
if(focus !=
_focus
)
460
DependencyObject oldFocus =
_focus
;
489
if(
_focus
!= null)
491
o =
_focus
;
516
UIElement.FocusWithinProperty.OnOriginValueChanged(oldFocus,
_focus
, ref _focusTreeState);
524
if(
_focus
!= null)
527
o =
_focus
;
534
_TsfManager.Value.Focus(
_focus
);
539
InputLanguageManager.Current.Focus(
_focus
, oldFocus);
550
if(
_focus
!= null)
552
KeyboardFocusChangedEventArgs gotFocus = new KeyboardFocusChangedEventArgs(this, timestamp, (IInputElement) oldFocus, (IInputElement)
_focus
);
554
gotFocus.Source=
_focus
;
561
InputMethod.Current.GotKeyboardFocus(
_focus
);
565
AutomationPeer.RaiseFocusChangedEventHelper((IInputElement)
_focus
);
656
if(
_focus
== null )
666
DependencyObject element =
_focus
;
700
if(element ==
_focus
)
734
UIElement.FocusWithinProperty.OnOriginValueChanged(
_focus
,
_focus
, ref _focusTreeState);
1112
if(InputElement.GetRootVisual (
_focus
as DependencyObject) != _focusRootVisual)