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)
47TypeContentControl.Focus();
ChangeSignature\ChangeSignatureDialog.xaml.cs (2)
75=> Members.Focus(); 226cell?.Focus();
GenerateType\GenerateTypeDialog.xaml.cs (5)
85=> accessListComboBox.Focus(); 88=> kindListComboBox.Focus(); 91=> projectListComboBox.Focus(); 94=> createNewFileRadioButton.Focus(); 97=> addToExistingFileRadioButton.Focus();
PickMembers\PickMembersDialog.xaml.cs (1)
116row?.Focus();
PresentationCore (2)
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (1)
529if (!_owner.Focus())
System\Windows\UIElement.cs (1)
2659this.Focus();
PresentationFramework (87)
MS\Internal\Documents\DocumentGrid.cs (1)
1281DocumentViewerOwner.Focus(); // text editor needs to be focused when cleared
MS\Internal\Ink\EditingCoordinator.cs (1)
701if ( _inkCanvas.Focus() && ActiveEditingMode != InkCanvasEditingMode.None )
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (1)
186if (!owner.Focus())
System\Windows\Automation\Peers\ComboBoxAutomationPeer.cs (1)
105if (!owner.Focus())
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
640cell.Focus();
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
246cell.Focus();
System\Windows\Automation\Peers\DatePickerAutomationPeer.cs (1)
65if (!owner.Focus())
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (1)
830owningButton.Focus();
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (1)
328if (owner.Expander.ExpanderToggleButton?.Focus() != true)
System\Windows\Controls\CheckBox.cs (1)
104Focus();
System\Windows\Controls\ComboBox.cs (6)
292comboBox.Focus(); 298comboBox.Focus(); 1080comboBox.EditableTextBoxSite.Focus(); 1283item.Focus(); 1723comboBox.Focus(); 1761comboBox.Focus();
System\Windows\Controls\ContextMenu.cs (1)
612Focus();
System\Windows\Controls\DataGrid.cs (15)
1831cell.Focus(); 2169cell.Focus(); 2949cell.Focus(); 4771Focus(); 5491cell.Focus(); 5851if (nextCellContainer == null || nextCellContainer == currentCellContainer || !nextCellContainer.Focus()) 5894focusContainer.Focus(); 5965realNewCell.Focus(); 6021currentCellContainer.Focus(); 6107cell.Focus(); 6161cell.Focus(); 6225cell.Focus(); 6239targetElement.Focus(); 6300cell.Focus(); 6394cell.Focus();
System\Windows\Controls\DataGridCell.cs (2)
485Focus(); 935Focus();
System\Windows\Controls\DataGridCheckBoxColumn.cs (1)
174checkBox.Focus();
System\Windows\Controls\DataGridComboBoxColumn.cs (1)
542comboBox.Focus();
System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
221textBox.Focus();
System\Windows\Controls\DataGridTextColumn.cs (1)
171textBox.Focus();
System\Windows\Controls\DatePicker.cs (2)
357dp._calendar.Focus(); 846picker._textBox.Focus();
System\Windows\Controls\DocumentViewer.cs (2)
1264Focus(); 2196this.Focus();
System\Windows\Controls\FlowDocumentReader.cs (4)
792((FrameworkElement)CurrentViewer).Focus(); 963((UIElement)focusedElement).Focus(); 971feViewer.Focus(); 1583((UIElement)CurrentViewer).Focus();
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1548Focus();
System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
754parent.LastActionItem.Focus(); 758_itemsControl.Focus();
System\Windows\Controls\ItemsControl.cs (5)
2169return nextElement.Focus(); 2350return firstElement.Focus(); 2416return firstElement.Focus(); 2482return lastElement.Focus(); 3280returnValue = container.Focus();
System\Windows\Controls\ListBox.cs (1)
804listItem.Focus();
System\Windows\Controls\ListBoxItem.cs (2)
280if (Selector.UiGetIsSelectable(this) && Focus()) 359oldItemsControl.Focus();
System\Windows\Controls\Menu.cs (1)
358if (menuItem.Focus())
System\Windows\Controls\MenuItem.cs (4)
668menuItem.Focus(); 692if (!menuItem.Focus()) 1820parent.Focus(); 2523Focus();
System\Windows\Controls\Primitives\ButtonBase.cs (1)
434Focus();
System\Windows\Controls\Primitives\MenuBase.cs (1)
773_currentSelection.Focus();
System\Windows\Controls\Primitives\Thumb.cs (1)
234Focus();
System\Windows\Controls\RadioButton.cs (1)
266Focus();
System\Windows\Controls\ScrollViewer.cs (1)
1134if (Focus())
System\Windows\Controls\SinglePageViewer.cs (1)
1166Focus();
System\Windows\Controls\Slider.cs (1)
1322e.Handled = slider.Focus() || e.Handled;
System\Windows\Controls\StickyNote.cs (4)
609innerControl.Focus(); 1253Focus(); 1280Focus(); 1361this.Focus();
System\Windows\Controls\TabItem.cs (1)
496returnValue = Focus() || setFocusOnContent;
System\Windows\Controls\ToolBar.cs (2)
293ToolBarOverflowPanel.Focus(); 683if (newFocusElement.Focus())
System\Windows\Controls\TreeView.cs (5)
360_selectedContainer.Focus(); 380_selectedContainer.Focus(); 385this.Focus(); 782_selectedContainer.Focus(); 798_selectedContainer.Focus();
System\Windows\Controls\TreeViewItem.cs (3)
506Focus(); 550if (Focus()) 607Focus();
System\Windows\Documents\RubberbandSelector.cs (1)
513_uiScope.Focus();
System\windows\Documents\TextEditorDragDrop.cs (1)
607_textEditor.UiScope.Focus();
System\windows\Documents\TextEditorMouse.cs (1)
638This.UiScope.Focus(); // Raises a public event.
PresentationUI (7)
MS\Internal\Documents\Application\PageTextBox.cs (1)
161Focus();
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
229Focus();
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (4)
259Focus(); 600Focus(); 1253Focus(); 1345docViewer.SaveAsButton.Focus();
MS\Internal\Documents\FindToolBar.xaml.cs (1)
214FindTextBox.Focus();
System.Windows.Controls.Ribbon (32)
Microsoft\Windows\Automation\Peers\RibbonComboBoxAutomationPeer.cs (1)
84if (!owner.Focus())
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1968tabHeader.Focus();
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (7)
178EditableTextBoxSite.Focus(); 881EditableTextBoxSite.Focus(); 1274Focus(); 1451EditableTextBoxSite.Focus(); 1455PartToggleButton.Focus(); 1459Focus(); 1573EditableTextBoxSite.Focus();
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (1)
150uie.Focus();
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (1)
123Focus();
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
2763highlightedGalleryItem.Focus();
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (2)
301Focus(); 380Focus();
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (10)
525return uie.Focus(); 548firstItem.Focus(); 559lastItem.Focus(); 598nextElement.Focus(); 618nextElement.Focus(); 647previousElement.Focus(); 1108targetFocus.Focus(); 1199targetFocus.Focus(); 1269targetFocusOnFalse.Focus(); 1300targetFocusOnFalse.Focus();
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
1547ribbonCurrentSelection.Focus();
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (4)
731parent.Focus(); 751Focus(); 792this.Focus(); 1001ribbonCurrentSelection.Focus();
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (1)
387if (tabHeader.Focus())
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (1)
720this.Focus();
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (1)
706Focus();
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (2)
300_decorator.Focus(); 447Child.Focus();