64 references to FocusManager
PresentationCore (26)
Core\CSharp\System\Windows\ContentElement.cs (2)
535public static readonly RoutedEvent GotFocusEvent = FocusManager.GotFocusEvent.AddOwner(typeof(ContentElement)); 549public static readonly RoutedEvent LostFocusEvent = FocusManager.LostFocusEvent.AddOwner(typeof(ContentElement));
Core\CSharp\System\Windows\Input\Command\CommandManager.cs (5)
528if (FocusManager.GetIsFocusScope(d)) 563if (FocusManager.GetIsFocusScope(d)) 797IInputElement focusedElement = FocusManager.GetFocusedElement(parentScope); 833return FocusManager.GetFocusScope(parent); 843DependencyObject parentScope = FocusManager.GetFocusScope(child);
Core\CSharp\System\Windows\Input\FocusManager.cs (4)
36public static readonly RoutedEvent GotFocusEvent = EventManager.RegisterRoutedEvent("GotFocus", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(FocusManager)); 61public static readonly RoutedEvent LostFocusEvent = EventManager.RegisterRoutedEvent("LostFocus", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(FocusManager)); 98typeof(FocusManager), 112= DependencyProperty.RegisterAttached("IsFocusScope", typeof(bool), typeof(FocusManager),
Core\CSharp\System\Windows\Input\Keyboard.cs (1)
430if(FocusManager.GetIsFocusScope(element))
Core\CSharp\System\Windows\UIElement.cs (7)
1993if (!attached && FocusManager.GetFocusedElement(this)!=null) 1994FocusManager.SetFocusedElement(this, null); 2647DependencyObject focusScope = FocusManager.GetFocusScope(this); 2648if (FocusManager.GetFocusedElement(focusScope) == null) 2650FocusManager.SetFocusedElement(focusScope, (IInputElement)this); 3520public static readonly RoutedEvent GotFocusEvent = FocusManager.GotFocusEvent.AddOwner(typeof(UIElement)); 3534public static readonly RoutedEvent LostFocusEvent = FocusManager.LostFocusEvent.AddOwner(typeof(UIElement));
Core\CSharp\System\Windows\UIElement3D.cs (7)
331if (!attached && FocusManager.GetFocusedElement(this) != null) 332FocusManager.SetFocusedElement(this, null); 607DependencyObject focusScope = FocusManager.GetFocusScope(this); 608if (FocusManager.GetFocusedElement(focusScope) == null) 610FocusManager.SetFocusedElement(focusScope, (IInputElement)this); 744public static readonly RoutedEvent GotFocusEvent = FocusManager.GotFocusEvent.AddOwner(typeof(UIElement3D)); 758public static readonly RoutedEvent LostFocusEvent = FocusManager.LostFocusEvent.AddOwner(typeof(UIElement3D));
PresentationFramework (26)
src\Framework\MS\Internal\AppModel\OleCmdHelper.cs (2)
116IInputElement target = FocusManager.GetFocusedElement(Application.Current.MainWindow); 173IInputElement target = FocusManager.GetFocusedElement(Application.Current.MainWindow);
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (2)
61FocusManager.SetIsFocusScope(findToolBarHost, true); 80findToolBarHost.ClearValue(FocusManager.IsFocusScopeProperty);
src\Framework\System\Windows\Controls\ContextMenu.cs (1)
571FocusManager.SetFocusedElement(cm, null);
src\Framework\System\Windows\Controls\Frame.cs (1)
229IInputElement focusedElement = FocusManager.GetFocusedElement(doContent) as IInputElement;
src\Framework\System\Windows\Controls\Primitives\ButtonBase.cs (1)
92Visual focusScope = FocusManager.GetFocusScope(this) as Visual;
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (1)
71FocusManager.IsFocusScopeProperty.OverrideMetadata(typeof(MenuBase), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox));
src\Framework\System\Windows\Controls\Primitives\Selector.cs (2)
1350if (FocusManager.GetFocusScope(currentFocus) != FocusManager.GetFocusScope(this))
src\Framework\System\Windows\Controls\ToolBar.cs (1)
80FocusManager.IsFocusScopeProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox));
src\Framework\System\Windows\Controls\TreeView.cs (1)
768if (FocusManager.GetFocusScope(currentFocus) != root)
src\Framework\System\windows\Documents\TextSelection.cs (1)
346((IsRootElement(FocusManager.GetFocusScope(uiScope)) && IsFocusWithinRoot()) || // either UiScope root window has keyboard focus
src\Framework\System\Windows\FrameworkElement.cs (1)
5343IInputElement activeElement = FocusManager.GetFocusedElement(fe, true);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (4)
974DependencyObject focusScope = FocusManager.GetFocusScope(focusTarget); 977FocusManager.SetFocusedElement(focusScope, focusTarget as IInputElement); 1677DependencyObject focusedElement = FocusManager.GetFocusedElement(e) as DependencyObject; 2714return FocusManager.GetIsFocusScope(e) || GetParent(e) == null;
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
305case 213: t = () => typeof(FocusManager); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4374typeof(System.Windows.Input.FocusManager),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
5757case KnownElements.FocusManager: t = typeof(System.Windows.Input.FocusManager); break;
src\Framework\System\Windows\Navigation\NavigationService.cs (3)
960if (!((bool) focusScope.GetValue(FocusManager.IsFocusScopeProperty))) 962focusScope = FocusManager.GetFocusScope(focusScope); 964FocusManager.SetFocusedElement(focusScope, null);
src\Framework\System\Windows\Window.cs (2)
93FocusManager.IsFocusScopeProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); 2141IInputElement focusedElement = FocusManager.GetFocusedElement(doContent) as IInputElement;
System.Activities.Presentation (12)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (1)
85this.AddHandler(FocusManager.GotFocusEvent, new RoutedEventHandler(OnSomeoneGotFocus));
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (4)
48FocusManager.FocusedElementProperty.OverrideMetadata(typeof(FrameworkElement), new PropertyMetadata(null, null, new CoerceValueCallback(FocusScopeManager.FocusManager_CoerceFocusedElement))); 159UIElement focusScope = FocusManager.GetFocusScope(newElementFocus) as UIElement; 221if (!FocusManager.GetIsFocusScope(element)) 346FocusManager.SetFocusedElement(curScope, null);
System.Activities.Presentation\System\Activities\Presentation\DialogWindow.cs (1)
58var focusedElement = FocusManager.GetFocusedElement(rootVisual);
System.Activities.Presentation\System\Activities\Presentation\View\VBIdentifierDesigner.xaml.cs (2)
106DependencyObject focusScope = FocusManager.GetFocusScope(this.IdentifierTextBox); 107FocusManager.SetFocusedElement(focusScope, this);
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (4)
234if ((FocusManager.GetFocusedElement(this.view) as TextBox) != null) 236FocusManager.SetFocusedElement(this.view, null); 641oldFocus = FocusManager.GetFocusedElement(this.propertyInspector) as UIElement; 646oldFocus = FocusManager.GetFocusedElement(this.view) as UIElement;