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