50 references to Focus
PresentationCore (6)
Core\CSharp\System\Windows\ContentElement.cs (1)
494if (Keyboard.Focus(this) == this)
Core\CSharp\System\Windows\Input\FocusManager.cs (1)
263Keyboard.Focus(newFocusedElement);
Core\CSharp\System\Windows\Interop\HwndKeyboardInputProvider.cs (2)
61Keyboard.Focus(null); // internally we will set the focus to the root. 551Keyboard.Focus(restoreFocusDO as IInputElement);
Core\CSharp\System\Windows\UIElement.cs (1)
2630if (Keyboard.Focus(this) == this)
Core\CSharp\System\Windows\UIElement3D.cs (1)
590if (Keyboard.Focus(this) == this)
PresentationFramework (10)
src\Framework\System\Windows\Controls\DataGrid.cs (5)
5607Keyboard.Focus(nextFocusTarget as IInputElement); 5721Keyboard.Focus(nextFocusTarget as IInputElement); 5767Keyboard.Focus(nextFocusTarget as IInputElement); 5801Keyboard.Focus(nextFocusTarget as IInputElement); 5836Keyboard.Focus(nextFocusTarget as IInputElement);
src\Framework\System\Windows\Controls\Primitives\ButtonBase.cs (1)
529Keyboard.Focus(null);
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (1)
681 Keyboard.Focus(null);
src\Framework\System\Windows\Controls\StickyNote.cs (1)
1411Keyboard.Focus(null);
src\Framework\System\Windows\Controls\ToolBar.cs (2)
268Keyboard.Focus(null); 682Keyboard.Focus(null);
System.Activities.Core.Presentation (13)
System\Activities\Core\Presentation\CaseDesigner.xaml.cs (1)
59Keyboard.Focus((IInputElement)this);
System\Activities\Core\Presentation\CaseKeyBox.xaml.cs (1)
200Keyboard.Focus((IInputElement)this.visibleBox);
System\Activities\Core\Presentation\FlowchartDesigner.Container.cs (1)
378Keyboard.Focus(modelItemsToSelect[0].View as IInputElement);
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (1)
1727Keyboard.Focus(view);
System\Activities\Core\Presentation\StateContainerEditor.CompositeView.cs (1)
410Keyboard.Focus(modelItemsPasted[0].View as IInputElement);
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (1)
2010Keyboard.Focus((IInputElement)modelItem.View);
System\Activities\Core\Presentation\SwitchDesigner.xaml.cs (2)
321Keyboard.Focus((IInputElement)sender); 327Keyboard.Focus((IInputElement)sender);
System\Activities\Core\Presentation\TryCatchDesigner.xaml.cs (5)
362Keyboard.Focus((IInputElement)sender); 368Keyboard.Focus((IInputElement)sender); 399Keyboard.Focus((IInputElement)sender); 405Keyboard.Focus((IInputElement)sender); 519Keyboard.Focus((IInputElement)this);
System.Activities.Presentation (21)
System.Activities.Presentation\System\Activities\Presentation\ActivityDesigner.cs (1)
251Keyboard.Focus(this.defaultDisplayNameBox);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (1)
444Keyboard.Focus(null);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (1)
989Keyboard.Focus(null);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\StringEditor.cs (1)
367Keyboard.Focus(null);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Selection\PropertySelection.cs (1)
430if (focusable != null && focusable == Keyboard.Focus(focusable))
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (1)
616Keyboard.Focus(adornedEditor.Connector);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (1)
975Keyboard.Focus(this.itemToFocus.View as IInputElement);
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
1552Keyboard.Focus(currentFocus);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (3)
1269Keyboard.Focus(designer); 1275Keyboard.Focus(this.GetDesignerToFocus()); 1394Keyboard.Focus(target);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
998Keyboard.Focus(this.GetDesignerToFocus());
System.Activities.Presentation\System\Activities\Presentation\View\RubberBandSelector.cs (1)
296Keyboard.Focus(selectedModelItems[0].View as IInputElement);
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
406Keyboard.Focus(textBlock);
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (3)
442Keyboard.Focus((UIElement)this.Item.View); 457Keyboard.Focus(view); 647Keyboard.Focus((FrameworkElement)this);
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (2)
262Keyboard.Focus(view); 530Keyboard.Focus((FrameworkElement)sender);
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (2)
652Keyboard.Focus(this); 1029Keyboard.Focus(viewToFocus);