63 references to FocusManager
PresentationCore (26)
System\Windows\ContentElement.cs (2)
517
public static readonly RoutedEvent GotFocusEvent =
FocusManager
.GotFocusEvent.AddOwner(typeof(ContentElement));
531
public static readonly RoutedEvent LostFocusEvent =
FocusManager
.LostFocusEvent.AddOwner(typeof(ContentElement));
System\Windows\Input\Command\CommandManager.cs (5)
448
if (
FocusManager
.GetIsFocusScope(d))
483
if (
FocusManager
.GetIsFocusScope(d))
685
IInputElement focusedElement =
FocusManager
.GetFocusedElement(parentScope);
721
return
FocusManager
.GetFocusScope(parent);
731
DependencyObject parentScope =
FocusManager
.GetFocusScope(child);
System\Windows\Input\FocusManager.cs (4)
25
public static readonly RoutedEvent GotFocusEvent = EventManager.RegisterRoutedEvent("GotFocus", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
FocusManager
));
50
public static readonly RoutedEvent LostFocusEvent = EventManager.RegisterRoutedEvent("LostFocus", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
FocusManager
));
87
typeof(
FocusManager
),
101
= DependencyProperty.RegisterAttached("IsFocusScope", typeof(bool), typeof(
FocusManager
),
System\Windows\Input\Keyboard.cs (1)
409
if(
FocusManager
.GetIsFocusScope(element))
System\Windows\UIElement.cs (7)
1951
if (!attached &&
FocusManager
.GetFocusedElement(this)!=null)
1952
FocusManager
.SetFocusedElement(this, null);
2604
DependencyObject focusScope =
FocusManager
.GetFocusScope(this);
2605
if (
FocusManager
.GetFocusedElement(focusScope) == null)
2607
FocusManager
.SetFocusedElement(focusScope, (IInputElement)this);
3465
public static readonly RoutedEvent GotFocusEvent =
FocusManager
.GotFocusEvent.AddOwner(typeof(UIElement));
3479
public static readonly RoutedEvent LostFocusEvent =
FocusManager
.LostFocusEvent.AddOwner(typeof(UIElement));
System\Windows\UIElement3D.cs (7)
308
if (!attached &&
FocusManager
.GetFocusedElement(this) != null)
309
FocusManager
.SetFocusedElement(this, null);
583
DependencyObject focusScope =
FocusManager
.GetFocusScope(this);
584
if (
FocusManager
.GetFocusedElement(focusScope) == null)
586
FocusManager
.SetFocusedElement(focusScope, (IInputElement)this);
720
public static readonly RoutedEvent GotFocusEvent =
FocusManager
.GotFocusEvent.AddOwner(typeof(UIElement3D));
734
public static readonly RoutedEvent LostFocusEvent =
FocusManager
.LostFocusEvent.AddOwner(typeof(UIElement3D));
PresentationFramework (27)
MS\Internal\Documents\DocumentViewerHelper.cs (2)
48
FocusManager
.SetIsFocusScope(findToolBarHost, true);
67
findToolBarHost.ClearValue(
FocusManager
.IsFocusScopeProperty);
System\Windows\Controls\ContextMenu.cs (1)
559
FocusManager
.SetFocusedElement(cm, null);
System\Windows\Controls\Frame.cs (1)
209
IInputElement focusedElement =
FocusManager
.GetFocusedElement(doContent) as IInputElement;
System\Windows\Controls\Primitives\ButtonBase.cs (1)
83
Visual focusScope =
FocusManager
.GetFocusScope(this) as Visual;
System\Windows\Controls\Primitives\MenuBase.cs (1)
59
FocusManager
.IsFocusScopeProperty.OverrideMetadata(typeof(MenuBase), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox));
System\Windows\Controls\Primitives\Selector.cs (2)
1319
if (
FocusManager
.GetFocusScope(currentFocus) !=
FocusManager
.GetFocusScope(this))
System\Windows\Controls\TabItem.cs (3)
355
DependencyObject thisFocusScope =
FocusManager
.GetFocusScope(this);
358
DependencyObject currentFocusScope =
FocusManager
.GetFocusScope(currentFocus);
360
FocusManager
.SetFocusedElement(thisFocusScope, this);
System\Windows\Controls\ToolBar.cs (1)
69
FocusManager
.IsFocusScopeProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox));
System\Windows\Controls\TreeView.cs (1)
758
if (
FocusManager
.GetFocusScope(currentFocus) != root)
System\windows\Documents\TextSelection.cs (1)
327
((IsRootElement(
FocusManager
.GetFocusScope(uiScope)) && IsFocusWithinRoot()) || // either UiScope root window has keyboard focus
System\Windows\FrameworkElement.cs (1)
5332
IInputElement activeElement =
FocusManager
.GetFocusedElement(fe, true);
System\Windows\Input\KeyboardNavigation.cs (4)
909
DependencyObject focusScope =
FocusManager
.GetFocusScope(focusTarget);
912
FocusManager
.SetFocusedElement(focusScope, focusTarget as IInputElement);
1579
DependencyObject focusedElement =
FocusManager
.GetFocusedElement(e) as DependencyObject;
2615
return
FocusManager
.GetIsFocusScope(e) || GetParent(e) == null;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
306
case 213: t = () => typeof(
FocusManager
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4735
typeof(System.Windows.Input.
FocusManager
),
System\Windows\Markup\KnownTypes.cs (1)
5760
case KnownElements.FocusManager: t = typeof(System.Windows.Input.
FocusManager
); break;
System\Windows\Navigation\NavigationService.cs (3)
802
if (!((bool) focusScope.GetValue(
FocusManager
.IsFocusScopeProperty)))
804
focusScope =
FocusManager
.GetFocusScope(focusScope);
806
FocusManager
.SetFocusedElement(focusScope, null);
System\Windows\Window.cs (2)
64
FocusManager
.IsFocusScopeProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox));
2081
IInputElement focusedElement =
FocusManager
.GetFocusedElement(doContent) as IInputElement;
PresentationUI (4)
InstallationError.xaml.cs (2)
87
FocusManager
.SetFocusedElement(this, RetryButton);
178
FocusManager
.SetFocusedElement(this, LogFileButton);
TenFeetInstallationError.xaml.cs (2)
89
FocusManager
.SetFocusedElement(this, RetryButton);
182
FocusManager
.SetFocusedElement(this, LogFileButton);
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
95
FocusManager
.IsFocusScopeProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(true));
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
74
FocusManager
.IsFocusScopeProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(false));
WindowsFormsIntegration (4)
System\Windows\Integration\ElementHost.cs (2)
74
System.Windows.Input.
FocusManager
.SetIsFocusScope(this._decorator, true);
283
System.Windows.Input.
FocusManager
.SetFocusedElement(_decorator, null);
System\Windows\Integration\WindowsFormsHost.cs (2)
71
{ System.Windows.Input.
FocusManager
.SetFocusedElement(focusScope, this); }
162
while (null != element && !
FocusManager
.GetIsFocusScope(element))