Implemented interface member:
method
Focus
System.Windows.IInputElement.Focus()
111 references to Focus
PresentationCore (2)
Core\CSharp\System\Windows\Automation\Peers\UIElementAutomationPeer.cs (1)
543if (!_owner.Focus())
Core\CSharp\System\Windows\UIElement.cs (1)
2688this.Focus();
PresentationFramework (87)
src\Framework\MS\Internal\Documents\DocumentGrid.cs (1)
1306DocumentViewerOwner.Focus(); // text editor needs to be focused when cleared
src\Framework\MS\Internal\Ink\EditingCoordinator.cs (1)
726if ( _inkCanvas.Focus() && ActiveEditingMode != InkCanvasEditingMode.None )
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (1)
187if (!owner.Focus())
src\Framework\System\Windows\Automation\Peers\ComboBoxAutomationPeer.cs (1)
98if (!owner.Focus())
src\Framework\System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
614cell.Focus();
src\Framework\System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
249cell.Focus();
src\Framework\System\Windows\Automation\Peers\DatePickerAutomationPeer.cs (1)
66if (!owner.Focus())
src\Framework\System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (1)
806owningButton.Focus();
src\Framework\System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (1)
314if (owner.Expander.ExpanderToggleButton?.Focus() != true)
src\Framework\System\Windows\Controls\CheckBox.cs (1)
105Focus();
src\Framework\System\Windows\Controls\ComboBox.cs (6)
293comboBox.Focus(); 299comboBox.Focus(); 1082comboBox.EditableTextBoxSite.Focus(); 1285item.Focus(); 1726comboBox.Focus(); 1764comboBox.Focus();
src\Framework\System\Windows\Controls\ContextMenu.cs (1)
616Focus();
src\Framework\System\Windows\Controls\DataGrid.cs (15)
1835cell.Focus(); 2173cell.Focus(); 2954cell.Focus(); 4776Focus(); 5496cell.Focus(); 5856if (nextCellContainer == null || nextCellContainer == currentCellContainer || !nextCellContainer.Focus()) 5899focusContainer.Focus(); 5970realNewCell.Focus(); 6026currentCellContainer.Focus(); 6112cell.Focus(); 6166cell.Focus(); 6230cell.Focus(); 6244targetElement.Focus(); 6305cell.Focus(); 6399cell.Focus();
src\Framework\System\Windows\Controls\DataGridCell.cs (2)
480Focus(); 931Focus();
src\Framework\System\Windows\Controls\DataGridCheckBoxColumn.cs (1)
166checkBox.Focus();
src\Framework\System\Windows\Controls\DataGridComboBoxColumn.cs (1)
544comboBox.Focus();
src\Framework\System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
223textBox.Focus();
src\Framework\System\Windows\Controls\DataGridTextColumn.cs (1)
172textBox.Focus();
src\Framework\System\Windows\Controls\DatePicker.cs (2)
357dp._calendar.Focus(); 835picker._textBox.Focus();
src\Framework\System\Windows\Controls\DocumentViewer.cs (2)
1284Focus(); 2251this.Focus();
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (4)
793((FrameworkElement)CurrentViewer).Focus(); 969((UIElement)focusedElement).Focus(); 977feViewer.Focus(); 1589((UIElement)CurrentViewer).Focus();
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1556Focus();
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
756parent.LastActionItem.Focus(); 760_itemsControl.Focus();
src\Framework\System\Windows\Controls\ItemsControl.cs (5)
2172return nextElement.Focus(); 2353return firstElement.Focus(); 2419return firstElement.Focus(); 2485return lastElement.Focus(); 3211returnValue = container.Focus();
src\Framework\System\Windows\Controls\ListBox.cs (1)
759listItem.Focus();
src\Framework\System\Windows\Controls\ListBoxItem.cs (2)
280if (Selector.UiGetIsSelectable(this) && Focus()) 359oldItemsControl.Focus();
src\Framework\System\Windows\Controls\Menu.cs (1)
384if (menuItem.Focus())
src\Framework\System\Windows\Controls\MenuItem.cs (4)
663menuItem.Focus(); 687if (!menuItem.Focus()) 1856parent.Focus(); 2580Focus();
src\Framework\System\Windows\Controls\Primitives\ButtonBase.cs (1)
423Focus();
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (1)
784_currentSelection.Focus();
src\Framework\System\Windows\Controls\Primitives\Thumb.cs (1)
231Focus();
src\Framework\System\Windows\Controls\RadioButton.cs (1)
263Focus();
src\Framework\System\Windows\Controls\ScrollViewer.cs (1)
1161if (Focus())
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
1173Focus();
src\Framework\System\Windows\Controls\Slider.cs (1)
1247e.Handled = slider.Focus() || e.Handled;
src\Framework\System\Windows\Controls\StickyNote.cs (4)
619innerControl.Focus(); 1263Focus(); 1290Focus(); 1371this.Focus();
src\Framework\System\Windows\Controls\TabItem.cs (1)
482returnValue = Focus() || setFocusOnContent;
src\Framework\System\Windows\Controls\ToolBar.cs (2)
294ToolBarOverflowPanel.Focus(); 693if (newFocusElement.Focus())
src\Framework\System\Windows\Controls\TreeView.cs (5)
361_selectedContainer.Focus(); 381_selectedContainer.Focus(); 386this.Focus(); 784_selectedContainer.Focus(); 800_selectedContainer.Focus();
src\Framework\System\Windows\Controls\TreeViewItem.cs (3)
507Focus(); 551if (Focus()) 608Focus();
src\Framework\System\Windows\Documents\RubberbandSelector.cs (1)
611_uiScope.Focus();
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (1)
619_textEditor.UiScope.Focus();
src\Framework\System\windows\Documents\TextEditorMouse.cs (1)
639This.UiScope.Focus(); // Raises a public event.
System.Activities.Core.Presentation (1)
System\Activities\Core\Presentation\CaseKeyBox.xaml.cs (1)
306box.Focus();
System.Activities.Presentation (21)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (1)
620focusableElement.Focus();
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagEditor.xaml.cs (1)
115item.Focus();
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Controls\WorkaroundPopup.cs (1)
35this.Child.Focus();
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\StringEditor.cs (2)
147editor.Focus(); 380this.Focus();
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxControl.cs (2)
258this.toolsTreeView.Focus(); 273this.searchBox.Focus();
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (8)
422cell.Focus(); 708if (cell.Focus() && !cell.IsEditing) 741cell.Focus(); 746this.dataGrid.Focus(); 1219control.Focus(); 1251tb.Focus(); 1287identifierDesigner.Focus(); 1309textBox.Focus();
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
947first.Focus(); 952last.Focus();
System.Activities.Presentation\System\Activities\Presentation\View\ScrollViewerPanner.cs (1)
250this.scrollViewer.Focus();
System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (1)
709this.Focus();
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (2)
369tb.Focus(); 679textbox.Focus();