65 references to FocusManager
PresentationCore (26)
System\Windows\ContentElement.cs (2)
529public static readonly RoutedEvent GotFocusEvent = FocusManager.GotFocusEvent.AddOwner(typeof(ContentElement)); 543public static readonly RoutedEvent LostFocusEvent = FocusManager.LostFocusEvent.AddOwner(typeof(ContentElement));
System\Windows\Input\Command\CommandManager.cs (5)
460if (FocusManager.GetIsFocusScope(d)) 495if (FocusManager.GetIsFocusScope(d)) 693IInputElement focusedElement = FocusManager.GetFocusedElement(parentScope); 729return FocusManager.GetFocusScope(parent); 739DependencyObject parentScope = FocusManager.GetFocusScope(child);
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),
System\Windows\Input\Keyboard.cs (1)
417if(FocusManager.GetIsFocusScope(element))
System\Windows\UIElement.cs (7)
1965if (!attached && FocusManager.GetFocusedElement(this)!=null) 1966FocusManager.SetFocusedElement(this, null); 2618DependencyObject focusScope = FocusManager.GetFocusScope(this); 2619if (FocusManager.GetFocusedElement(focusScope) == null) 2621FocusManager.SetFocusedElement(focusScope, (IInputElement)this); 3485public static readonly RoutedEvent GotFocusEvent = FocusManager.GotFocusEvent.AddOwner(typeof(UIElement)); 3499public static readonly RoutedEvent LostFocusEvent = FocusManager.LostFocusEvent.AddOwner(typeof(UIElement));
System\Windows\UIElement3D.cs (7)
324if (!attached && FocusManager.GetFocusedElement(this) != null) 325FocusManager.SetFocusedElement(this, null); 599DependencyObject focusScope = FocusManager.GetFocusScope(this); 600if (FocusManager.GetFocusedElement(focusScope) == null) 602FocusManager.SetFocusedElement(focusScope, (IInputElement)this); 736public static readonly RoutedEvent GotFocusEvent = FocusManager.GotFocusEvent.AddOwner(typeof(UIElement3D)); 750public static readonly RoutedEvent LostFocusEvent = FocusManager.LostFocusEvent.AddOwner(typeof(UIElement3D));
PresentationFramework (29)
MS\Internal\AppModel\OleCmdHelper.cs (2)
102IInputElement target = FocusManager.GetFocusedElement(Application.Current.MainWindow); 151IInputElement target = FocusManager.GetFocusedElement(Application.Current.MainWindow);
MS\Internal\Documents\DocumentViewerHelper.cs (2)
51FocusManager.SetIsFocusScope(findToolBarHost, true); 70findToolBarHost.ClearValue(FocusManager.IsFocusScopeProperty);
System\Windows\Controls\ContextMenu.cs (1)
567FocusManager.SetFocusedElement(cm, null);
System\Windows\Controls\Frame.cs (1)
222IInputElement focusedElement = FocusManager.GetFocusedElement(doContent) as IInputElement;
System\Windows\Controls\Primitives\ButtonBase.cs (1)
95Visual focusScope = FocusManager.GetFocusScope(this) as Visual;
System\Windows\Controls\Primitives\MenuBase.cs (1)
69FocusManager.IsFocusScopeProperty.OverrideMetadata(typeof(MenuBase), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox));
System\Windows\Controls\Primitives\Selector.cs (2)
1332if (FocusManager.GetFocusScope(currentFocus) != FocusManager.GetFocusScope(this))
System\Windows\Controls\TabItem.cs (3)
363DependencyObject thisFocusScope = FocusManager.GetFocusScope(this); 366DependencyObject currentFocusScope = FocusManager.GetFocusScope(currentFocus); 368FocusManager.SetFocusedElement(thisFocusScope, this);
System\Windows\Controls\ToolBar.cs (1)
79FocusManager.IsFocusScopeProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox));
System\Windows\Controls\TreeView.cs (1)
766if (FocusManager.GetFocusScope(currentFocus) != root)
System\windows\Documents\TextSelection.cs (1)
343((IsRootElement(FocusManager.GetFocusScope(uiScope)) && IsFocusWithinRoot()) || // either UiScope root window has keyboard focus
System\Windows\FrameworkElement.cs (1)
5345IInputElement activeElement = FocusManager.GetFocusedElement(fe, true);
System\Windows\Input\KeyboardNavigation.cs (4)
920DependencyObject focusScope = FocusManager.GetFocusScope(focusTarget); 923FocusManager.SetFocusedElement(focusScope, focusTarget as IInputElement); 1591DependencyObject focusedElement = FocusManager.GetFocusedElement(e) as DependencyObject; 2627return FocusManager.GetIsFocusScope(e) || GetParent(e) == null;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
309case 213: t = () => typeof(FocusManager); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4378typeof(System.Windows.Input.FocusManager),
System\Windows\Markup\KnownTypes.cs (1)
5767case KnownElements.FocusManager: t = typeof(System.Windows.Input.FocusManager); break;
System\Windows\Navigation\NavigationService.cs (3)
832if (!((bool) focusScope.GetValue(FocusManager.IsFocusScopeProperty))) 834focusScope = FocusManager.GetFocusScope(focusScope); 836FocusManager.SetFocusedElement(focusScope, null);
System\Windows\Window.cs (2)
83FocusManager.IsFocusScopeProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); 2107IInputElement focusedElement = FocusManager.GetFocusedElement(doContent) as IInputElement;
PresentationUI (4)
InstallationError.xaml.cs (2)
92FocusManager.SetFocusedElement(this, RetryButton); 183FocusManager.SetFocusedElement(this, LogFileButton);
TenFeetInstallationError.xaml.cs (2)
94FocusManager.SetFocusedElement(this, RetryButton); 187FocusManager.SetFocusedElement(this, LogFileButton);
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
99 FocusManager.IsFocusScopeProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
78FocusManager.IsFocusScopeProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(false));
WindowsFormsIntegration (4)
System\Windows\Integration\ElementHost.cs (2)
78System.Windows.Input.FocusManager.SetIsFocusScope(this._decorator, true); 288System.Windows.Input.FocusManager.SetFocusedElement(_decorator, null);
System\Windows\Integration\WindowsFormsHost.cs (2)
74{ System.Windows.Input.FocusManager.SetFocusedElement(focusScope, this); } 165while (null != element && !FocusManager.GetIsFocusScope(element))