63 references to FocusManager
PresentationCore (26)
System\Windows\ContentElement.cs (2)
518public static readonly RoutedEvent GotFocusEvent = FocusManager.GotFocusEvent.AddOwner(typeof(ContentElement)); 532public static readonly RoutedEvent LostFocusEvent = FocusManager.LostFocusEvent.AddOwner(typeof(ContentElement));
System\Windows\Input\Command\CommandManager.cs (5)
449if (FocusManager.GetIsFocusScope(d)) 484if (FocusManager.GetIsFocusScope(d)) 686IInputElement focusedElement = FocusManager.GetFocusedElement(parentScope); 722return FocusManager.GetFocusScope(parent); 732DependencyObject parentScope = FocusManager.GetFocusScope(child);
System\Windows\Input\FocusManager.cs (4)
26public static readonly RoutedEvent GotFocusEvent = EventManager.RegisterRoutedEvent("GotFocus", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(FocusManager)); 51public static readonly RoutedEvent LostFocusEvent = EventManager.RegisterRoutedEvent("LostFocus", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(FocusManager)); 88typeof(FocusManager), 102= DependencyProperty.RegisterAttached("IsFocusScope", typeof(bool), typeof(FocusManager),
System\Windows\Input\Keyboard.cs (1)
410if(FocusManager.GetIsFocusScope(element))
System\Windows\UIElement.cs (7)
1952if (!attached && FocusManager.GetFocusedElement(this)!=null) 1953FocusManager.SetFocusedElement(this, null); 2605DependencyObject focusScope = FocusManager.GetFocusScope(this); 2606if (FocusManager.GetFocusedElement(focusScope) == null) 2608FocusManager.SetFocusedElement(focusScope, (IInputElement)this); 3472public static readonly RoutedEvent GotFocusEvent = FocusManager.GotFocusEvent.AddOwner(typeof(UIElement)); 3486public static readonly RoutedEvent LostFocusEvent = FocusManager.LostFocusEvent.AddOwner(typeof(UIElement));
System\Windows\UIElement3D.cs (7)
309if (!attached && FocusManager.GetFocusedElement(this) != null) 310FocusManager.SetFocusedElement(this, null); 584DependencyObject focusScope = FocusManager.GetFocusScope(this); 585if (FocusManager.GetFocusedElement(focusScope) == null) 587FocusManager.SetFocusedElement(focusScope, (IInputElement)this); 721public static readonly RoutedEvent GotFocusEvent = FocusManager.GotFocusEvent.AddOwner(typeof(UIElement3D)); 735public static readonly RoutedEvent LostFocusEvent = FocusManager.LostFocusEvent.AddOwner(typeof(UIElement3D));
PresentationFramework (27)
MS\Internal\Documents\DocumentViewerHelper.cs (2)
49FocusManager.SetIsFocusScope(findToolBarHost, true); 68findToolBarHost.ClearValue(FocusManager.IsFocusScopeProperty);
System\Windows\Controls\ContextMenu.cs (1)
560FocusManager.SetFocusedElement(cm, null);
System\Windows\Controls\Frame.cs (1)
210IInputElement focusedElement = FocusManager.GetFocusedElement(doContent) as IInputElement;
System\Windows\Controls\Primitives\ButtonBase.cs (1)
84Visual focusScope = FocusManager.GetFocusScope(this) as Visual;
System\Windows\Controls\Primitives\MenuBase.cs (1)
60FocusManager.IsFocusScopeProperty.OverrideMetadata(typeof(MenuBase), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox));
System\Windows\Controls\Primitives\Selector.cs (2)
1321if (FocusManager.GetFocusScope(currentFocus) != FocusManager.GetFocusScope(this))
System\Windows\Controls\TabItem.cs (3)
359DependencyObject thisFocusScope = FocusManager.GetFocusScope(this); 362DependencyObject currentFocusScope = FocusManager.GetFocusScope(currentFocus); 364FocusManager.SetFocusedElement(thisFocusScope, this);
System\Windows\Controls\ToolBar.cs (1)
70FocusManager.IsFocusScopeProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox));
System\Windows\Controls\TreeView.cs (1)
763if (FocusManager.GetFocusScope(currentFocus) != root)
System\windows\Documents\TextSelection.cs (1)
340((IsRootElement(FocusManager.GetFocusScope(uiScope)) && IsFocusWithinRoot()) || // either UiScope root window has keyboard focus
System\Windows\FrameworkElement.cs (1)
5339IInputElement activeElement = FocusManager.GetFocusedElement(fe, true);
System\Windows\Input\KeyboardNavigation.cs (4)
914DependencyObject focusScope = FocusManager.GetFocusScope(focusTarget); 917FocusManager.SetFocusedElement(focusScope, focusTarget as IInputElement); 1587DependencyObject focusedElement = FocusManager.GetFocusedElement(e) as DependencyObject; 2623return FocusManager.GetIsFocusScope(e) || GetParent(e) == null;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
307case 213: t = () => typeof(FocusManager); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4736typeof(System.Windows.Input.FocusManager),
System\Windows\Markup\KnownTypes.cs (1)
5761case KnownElements.FocusManager: t = typeof(System.Windows.Input.FocusManager); break;
System\Windows\Navigation\NavigationService.cs (3)
818if (!((bool) focusScope.GetValue(FocusManager.IsFocusScopeProperty))) 820focusScope = FocusManager.GetFocusScope(focusScope); 822FocusManager.SetFocusedElement(focusScope, null);
System\Windows\Window.cs (2)
65FocusManager.IsFocusScopeProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); 2088IInputElement focusedElement = FocusManager.GetFocusedElement(doContent) as IInputElement;
PresentationUI (4)
InstallationError.xaml.cs (2)
88FocusManager.SetFocusedElement(this, RetryButton); 179FocusManager.SetFocusedElement(this, LogFileButton);
TenFeetInstallationError.xaml.cs (2)
90FocusManager.SetFocusedElement(this, RetryButton); 183FocusManager.SetFocusedElement(this, LogFileButton);
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
96 FocusManager.IsFocusScopeProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
75FocusManager.IsFocusScopeProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(false));
WindowsFormsIntegration (4)
System\Windows\Integration\ElementHost.cs (2)
75System.Windows.Input.FocusManager.SetIsFocusScope(this._decorator, true); 284System.Windows.Input.FocusManager.SetFocusedElement(_decorator, null);
System\Windows\Integration\WindowsFormsHost.cs (2)
72{ System.Windows.Input.FocusManager.SetFocusedElement(focusScope, this); } 163while (null != element && !FocusManager.GetIsFocusScope(element))