Implemented interface member:
method
Focus
System.Windows.IInputElement.Focus()
149 references to Focus
Microsoft.CodeAnalysis.EditorFeatures.Wpf (10)
InlineRename\CommandHandlers\RenameCommandHandler.cs (1)
51(textView as IWpfTextView)?.VisualElement.Focus();
InlineRename\UI\Adornment\RenameFlyout.xaml.cs (1)
163_textView.VisualElement.Focus();
InlineRename\UI\Adornment\RenameUserInputTextBox.xaml.cs (1)
70this.Focus();
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (4)
95this.Focus(); 159_focusedElement.Focus(); 317_textView.VisualElement.Focus(); 328_textView.VisualElement.Focus();
InlineRename\UI\SmartRename\SmartRenameUserInputComboBox.xaml.cs (2)
95this.Focus(); 135Focus();
Interactive\InteractiveDocumentNavigationService.cs (1)
76textView.VisualElement.Focus();
Microsoft.VisualStudio.LanguageServices (9)
ChangeSignature\AddParameterDialog.xaml.cs (1)
48TypeContentControl.Focus();
ChangeSignature\ChangeSignatureDialog.xaml.cs (2)
76=> Members.Focus(); 227cell?.Focus();
GenerateType\GenerateTypeDialog.xaml.cs (5)
86=> accessListComboBox.Focus(); 89=> kindListComboBox.Focus(); 92=> projectListComboBox.Focus(); 95=> createNewFileRadioButton.Focus(); 98=> addToExistingFileRadioButton.Focus();
PickMembers\PickMembersDialog.xaml.cs (1)
117row?.Focus();
PresentationCore (2)
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (1)
520if (!_owner.Focus())
System\Windows\UIElement.cs (1)
2654this.Focus();
PresentationFramework (87)
MS\Internal\Documents\DocumentGrid.cs (1)
1274DocumentViewerOwner.Focus(); // text editor needs to be focused when cleared
MS\Internal\Ink\EditingCoordinator.cs (1)
686if ( _inkCanvas.Focus() && ActiveEditingMode != InkCanvasEditingMode.None )
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (1)
180if (!owner.Focus())
System\Windows\Automation\Peers\ComboBoxAutomationPeer.cs (1)
93if (!owner.Focus())
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
634cell.Focus();
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
241cell.Focus();
System\Windows\Automation\Peers\DatePickerAutomationPeer.cs (1)
63if (!owner.Focus())
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (1)
823owningButton.Focus();
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (1)
316if (owner.Expander.ExpanderToggleButton?.Focus() != true)
System\Windows\Controls\CheckBox.cs (1)
96Focus();
System\Windows\Controls\ComboBox.cs (6)
282comboBox.Focus(); 288comboBox.Focus(); 1070comboBox.EditableTextBoxSite.Focus(); 1273item.Focus(); 1713comboBox.Focus(); 1751comboBox.Focus();
System\Windows\Controls\ContextMenu.cs (1)
604Focus();
System\Windows\Controls\DataGrid.cs (15)
1828cell.Focus(); 2166cell.Focus(); 2946cell.Focus(); 4768Focus(); 5488cell.Focus(); 5848if (nextCellContainer == null || nextCellContainer == currentCellContainer || !nextCellContainer.Focus()) 5891focusContainer.Focus(); 5962realNewCell.Focus(); 6018currentCellContainer.Focus(); 6104cell.Focus(); 6158cell.Focus(); 6222cell.Focus(); 6236targetElement.Focus(); 6297cell.Focus(); 6391cell.Focus();
System\Windows\Controls\DataGridCell.cs (2)
478Focus(); 928Focus();
System\Windows\Controls\DataGridCheckBoxColumn.cs (1)
170checkBox.Focus();
System\Windows\Controls\DataGridComboBoxColumn.cs (1)
538comboBox.Focus();
System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
215textBox.Focus();
System\Windows\Controls\DataGridTextColumn.cs (1)
168textBox.Focus();
System\Windows\Controls\DatePicker.cs (2)
353dp._calendar.Focus(); 842picker._textBox.Focus();
System\Windows\Controls\DocumentViewer.cs (2)
1252Focus(); 2184this.Focus();
System\Windows\Controls\FlowDocumentReader.cs (4)
787((FrameworkElement)CurrentViewer).Focus(); 958((UIElement)focusedElement).Focus(); 966feViewer.Focus(); 1578((UIElement)CurrentViewer).Focus();
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1545Focus();
System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
751parent.LastActionItem.Focus(); 755_itemsControl.Focus();
System\Windows\Controls\ItemsControl.cs (5)
2160return nextElement.Focus(); 2341return firstElement.Focus(); 2407return firstElement.Focus(); 2473return lastElement.Focus(); 3271returnValue = container.Focus();
System\Windows\Controls\ListBox.cs (1)
798listItem.Focus();
System\Windows\Controls\ListBoxItem.cs (2)
273if (Selector.UiGetIsSelectable(this) && Focus()) 352oldItemsControl.Focus();
System\Windows\Controls\Menu.cs (1)
348if (menuItem.Focus())
System\Windows\Controls\MenuItem.cs (4)
658menuItem.Focus(); 682if (!menuItem.Focus()) 1810parent.Focus(); 2513Focus();
System\Windows\Controls\Primitives\ButtonBase.cs (1)
423Focus();
System\Windows\Controls\Primitives\MenuBase.cs (1)
764_currentSelection.Focus();
System\Windows\Controls\Primitives\Thumb.cs (1)
220Focus();
System\Windows\Controls\RadioButton.cs (1)
258Focus();
System\Windows\Controls\ScrollViewer.cs (1)
1126if (Focus())
System\Windows\Controls\SinglePageViewer.cs (1)
1163Focus();
System\Windows\Controls\Slider.cs (1)
1311e.Handled = slider.Focus() || e.Handled;
System\Windows\Controls\StickyNote.cs (4)
593innerControl.Focus(); 1237Focus(); 1264Focus(); 1345this.Focus();
System\Windows\Controls\TabItem.cs (1)
490returnValue = Focus() || setFocusOnContent;
System\Windows\Controls\ToolBar.cs (2)
284ToolBarOverflowPanel.Focus(); 674if (newFocusElement.Focus())
System\Windows\Controls\TreeView.cs (5)
355_selectedContainer.Focus(); 375_selectedContainer.Focus(); 380this.Focus(); 777_selectedContainer.Focus(); 793_selectedContainer.Focus();
System\Windows\Controls\TreeViewItem.cs (3)
502Focus(); 546if (Focus()) 603Focus();
System\Windows\Documents\RubberbandSelector.cs (1)
503_uiScope.Focus();
System\windows\Documents\TextEditorDragDrop.cs (1)
590_textEditor.UiScope.Focus();
System\windows\Documents\TextEditorMouse.cs (1)
624This.UiScope.Focus(); // Raises a public event.
PresentationUI (7)
MS\Internal\Documents\Application\PageTextBox.cs (1)
159Focus();
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
227Focus();
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (4)
252Focus(); 593Focus(); 1246Focus(); 1338docViewer.SaveAsButton.Focus();
MS\Internal\Documents\FindToolBar.xaml.cs (1)
202FindTextBox.Focus();
System.Windows.Controls.Ribbon (32)
Microsoft\Windows\Automation\Peers\RibbonComboBoxAutomationPeer.cs (1)
81if (!owner.Focus())
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1965tabHeader.Focus();
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (7)
176EditableTextBoxSite.Focus(); 879EditableTextBoxSite.Focus(); 1272Focus(); 1449EditableTextBoxSite.Focus(); 1453PartToggleButton.Focus(); 1457Focus(); 1571EditableTextBoxSite.Focus();
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (1)
148uie.Focus();
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (1)
121Focus();
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
2761highlightedGalleryItem.Focus();
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (2)
299Focus(); 378Focus();
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (10)
520return uie.Focus(); 543firstItem.Focus(); 554lastItem.Focus(); 593nextElement.Focus(); 613nextElement.Focus(); 642previousElement.Focus(); 1103targetFocus.Focus(); 1194targetFocus.Focus(); 1264targetFocusOnFalse.Focus(); 1295targetFocusOnFalse.Focus();
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
1544ribbonCurrentSelection.Focus();
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (4)
728parent.Focus(); 748Focus(); 789this.Focus(); 998ribbonCurrentSelection.Focus();
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (1)
385if (tabHeader.Focus())
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (1)
718this.Focus();
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (1)
704Focus();
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (2)
297_decorator.Focus(); 444Child.Focus();