79 references to FocusedElement
PresentationCore (28)
Core\CSharp\MS\Internal\Automation\ElementProxy.cs (1)
367
AutomationPeer focusedPeer = AutomationPeer.AutomationPeerFromInputElement(Keyboard.
FocusedElement
);
Core\CSharp\System\Windows\ContentElement.cs (1)
486
return (Keyboard.
FocusedElement
== this);
Core\CSharp\System\Windows\Input\Command\CommandDevice.cs (2)
46
return Keyboard.
FocusedElement
;
311
return Keyboard.
FocusedElement
;
Core\CSharp\System\Windows\Input\Command\RoutedCommand.cs (5)
100
Execute(parameter, FilterInputElement(Keyboard.
FocusedElement
));
116
return CanExecuteImpl(parameter, FilterInputElement(Keyboard.
FocusedElement
), false, out unused);
156
target = FilterInputElement(Keyboard.
FocusedElement
);
201
target = FilterInputElement(Keyboard.
FocusedElement
);
432
target = FilterInputElement(Keyboard.
FocusedElement
);
Core\CSharp\System\Windows\Input\DefaultTextStore.cs (2)
176
_composition = new DefaultTextStoreTextComposition(InputManager.Current, Keyboard.
FocusedElement
, result, TextCompositionAutoComplete.On);
207
_composition = new DefaultTextStoreTextComposition(InputManager.Current, Keyboard.
FocusedElement
, "", TextCompositionAutoComplete.Off);
Core\CSharp\System\Windows\Input\FocusManager.cs (2)
251
DependencyObject oldFocus = Keyboard.
FocusedElement
as DependencyObject;
253
DependencyObject newFocus = Keyboard.
FocusedElement
as DependencyObject;
Core\CSharp\System\Windows\Input\InputMethod.cs (8)
598
IntPtr hwnd = HwndFromInputElement(Keyboard.
FocusedElement
);
636
hwnd = HwndFromInputElement(Keyboard.
FocusedElement
);
867
IntPtr hwnd = HwndFromInputElement(Keyboard.
FocusedElement
);
919
hwnd = HwndFromInputElement(Keyboard.
FocusedElement
);
1131
IntPtr hwnd = HwndFromInputElement(Keyboard.
FocusedElement
);
1206
IntPtr hwnd = HwndFromInputElement(Keyboard.
FocusedElement
);
1405
if (inputElement == Keyboard.
FocusedElement
)
1445
hwnd = HwndFromInputElement(Keyboard.
FocusedElement
);
Core\CSharp\System\Windows\Input\TextServicesManager.cs (2)
152
DependencyObject element = Keyboard.
FocusedElement
as DependencyObject;
192
DependencyObject element = Keyboard.
FocusedElement
as DependencyObject;
Core\CSharp\System\Windows\Interop\HwndKeyboardInputProvider.cs (2)
406
DependencyObject focusedDO = Keyboard.
FocusedElement
as DependencyObject;
561
restoreFocusDO = (DependencyObject)Keyboard.
FocusedElement
;
Core\CSharp\System\Windows\Interop\HwndSource.cs (1)
2397
DependencyObject focusObject = Keyboard.
FocusedElement
as DependencyObject;
Core\CSharp\System\Windows\UIElement.cs (1)
2622
return (Keyboard.
FocusedElement
== this);
Core\CSharp\System\Windows\UIElement3D.cs (1)
582
return (Keyboard.
FocusedElement
== this);
PresentationFramework (42)
src\Framework\MS\Internal\AppModel\ApplicationProxyInternal.cs (2)
167
TextBoxBase textBoxBase = Keyboard.
FocusedElement
as TextBoxBase;
173
PasswordBox passwordBox = Keyboard.
FocusedElement
as PasswordBox;
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (1)
362
DependencyObject focusedElement = Keyboard.
FocusedElement
as DependencyObject;
src\Framework\System\Windows\Controls\Button.cs (3)
93
b.UpdateIsDefaulted(Keyboard.
FocusedElement
);
111
b.UpdateIsDefaulted(Keyboard.
FocusedElement
);
195
UpdateIsDefaulted(Keyboard.
FocusedElement
);
src\Framework\System\Windows\Controls\ComboBox.cs (1)
1143
DependencyObject currentFocus = Keyboard.
FocusedElement
as DependencyObject;
src\Framework\System\Windows\Controls\ContextMenu.cs (2)
610
if (Keyboard.
FocusedElement
!= null)
612
_weakRefToPreviousFocus = new WeakReference<IInputElement>(Keyboard.
FocusedElement
);
src\Framework\System\Windows\Controls\DataGrid.cs (8)
5593
UIElement startElement = Keyboard.
FocusedElement
as UIElement;
5594
ContentElement startContentElement = (startElement == null) ? Keyboard.
FocusedElement
as ContentElement : null;
5883
FrameworkElement startingElement = Keyboard.
FocusedElement
as FrameworkElement;
5927
UIElement startElement = Keyboard.
FocusedElement
as UIElement;
5928
ContentElement startContentElement = (startElement == null) ? Keyboard.
FocusedElement
as ContentElement : null;
5941
if (wasEditing && previous && Keyboard.
FocusedElement
== currentCellContainer)
6036
DataGridCell newCell = Keyboard.
FocusedElement
as DataGridCell;
6187
startingElement = Keyboard.
FocusedElement
as FrameworkElement;
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (2)
939
focusedElement = Keyboard.
FocusedElement
as DependencyObject;
996
DependencyObject focusedElement = Keyboard.
FocusedElement
as DependencyObject;
src\Framework\System\Windows\Controls\ItemsControl.cs (2)
1875
DependencyObject startingElement = Keyboard.
FocusedElement
as DependencyObject;
2225
return NavigateByPage(FocusedInfo, Keyboard.
FocusedElement
as FrameworkElement, direction, itemNavigateArgs);
src\Framework\System\Windows\Controls\MenuItem.cs (2)
2437
object previousFocus = Keyboard.
FocusedElement
;
2439
object currentFocus = Keyboard.
FocusedElement
;
src\Framework\System\Windows\Controls\PopupControlService.cs (1)
240
IInputElement focusedElement = Keyboard.
FocusedElement
;
src\Framework\System\Windows\Controls\Primitives\Selector.cs (1)
1344
DependencyObject currentFocus = Keyboard.
FocusedElement
as DependencyObject;
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (1)
2217
if (Keyboard.
FocusedElement
== textBox)
src\Framework\System\Windows\Controls\ScrollViewer.cs (1)
981
DependencyObject focusedElement = Keyboard.
FocusedElement
as DependencyObject;
src\Framework\System\Windows\Controls\StickyNote.cs (1)
576
ContextMenu menu = Keyboard.
FocusedElement
as ContextMenu;
src\Framework\System\Windows\Controls\TabItem.cs (3)
303
if (e.OldFocus != Keyboard.
FocusedElement
)
336
if (e.OldFocus != Keyboard.
FocusedElement
)
473
TabItem currentFocus = Keyboard.
FocusedElement
as TabItem;
src\Framework\System\Windows\Controls\TreeView.cs (2)
707
IInputElement originalFocusedElement = Keyboard.
FocusedElement
;
762
DependencyObject currentFocus = Keyboard.
FocusedElement
as DependencyObject;
src\Framework\System\Windows\Controls\TreeViewItem.cs (2)
685
IInputElement originalFocus = Keyboard.
FocusedElement
;
716
DependencyObject currentFocus = Keyboard.
FocusedElement
as DependencyObject;
src\Framework\System\windows\Documents\TextEditorMouse.cs (2)
202
if (This.UiScope != Keyboard.
FocusedElement
)
652
return This.UiScope == Keyboard.
FocusedElement
&&
src\Framework\System\Windows\Documents\TextStore.cs (1)
1074
if (Keyboard.
FocusedElement
== UiScope)
src\Framework\System\Windows\FrameworkElement.cs (3)
5346
IInputElement oldFocus = Keyboard.
FocusedElement
;
5349
if (Keyboard.
FocusedElement
== activeElement || Keyboard.
FocusedElement
!= oldFocus)
src\Framework\System\Windows\Input\KeyboardNavigation.cs (1)
893
Current.ShowFocusVisual(Keyboard.
FocusedElement
as DependencyObject);
System.Activities.Presentation (9)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (1)
764
Keyboard.
FocusedElement
,
System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (1)
526
pasteContainer = Keyboard.
FocusedElement
as ICompositeView;
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
1540
var currentFocus = (UIElement)Keyboard.
FocusedElement
;
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (2)
1175
UIElement focusedElement = Keyboard.
FocusedElement
as UIElement;
1192
WorkflowViewElement focusedElement = Keyboard.
FocusedElement
as WorkflowViewElement;
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
596
WorkflowViewElement focusedElement = Keyboard.
FocusedElement
as WorkflowViewElement;
994
DependencyObject focusedElement = Keyboard.
FocusedElement
as DependencyObject;
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (2)
609
shouldSetFocus = Keyboard.
FocusedElement
!= this;
629
shouldSetFocus = Keyboard.
FocusedElement
!= this;