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