64 references to FocusManager
PresentationCore (26)
Core\CSharp\System\Windows\ContentElement.cs (2)
535
public static readonly RoutedEvent GotFocusEvent =
FocusManager
.GotFocusEvent.AddOwner(typeof(ContentElement));
549
public static readonly RoutedEvent LostFocusEvent =
FocusManager
.LostFocusEvent.AddOwner(typeof(ContentElement));
Core\CSharp\System\Windows\Input\Command\CommandManager.cs (5)
528
if (
FocusManager
.GetIsFocusScope(d))
563
if (
FocusManager
.GetIsFocusScope(d))
797
IInputElement focusedElement =
FocusManager
.GetFocusedElement(parentScope);
833
return
FocusManager
.GetFocusScope(parent);
843
DependencyObject parentScope =
FocusManager
.GetFocusScope(child);
Core\CSharp\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
),
Core\CSharp\System\Windows\Input\Keyboard.cs (1)
430
if(
FocusManager
.GetIsFocusScope(element))
Core\CSharp\System\Windows\UIElement.cs (7)
1993
if (!attached &&
FocusManager
.GetFocusedElement(this)!=null)
1994
FocusManager
.SetFocusedElement(this, null);
2647
DependencyObject focusScope =
FocusManager
.GetFocusScope(this);
2648
if (
FocusManager
.GetFocusedElement(focusScope) == null)
2650
FocusManager
.SetFocusedElement(focusScope, (IInputElement)this);
3520
public static readonly RoutedEvent GotFocusEvent =
FocusManager
.GotFocusEvent.AddOwner(typeof(UIElement));
3534
public static readonly RoutedEvent LostFocusEvent =
FocusManager
.LostFocusEvent.AddOwner(typeof(UIElement));
Core\CSharp\System\Windows\UIElement3D.cs (7)
331
if (!attached &&
FocusManager
.GetFocusedElement(this) != null)
332
FocusManager
.SetFocusedElement(this, null);
607
DependencyObject focusScope =
FocusManager
.GetFocusScope(this);
608
if (
FocusManager
.GetFocusedElement(focusScope) == null)
610
FocusManager
.SetFocusedElement(focusScope, (IInputElement)this);
744
public static readonly RoutedEvent GotFocusEvent =
FocusManager
.GotFocusEvent.AddOwner(typeof(UIElement3D));
758
public static readonly RoutedEvent LostFocusEvent =
FocusManager
.LostFocusEvent.AddOwner(typeof(UIElement3D));
PresentationFramework (26)
src\Framework\MS\Internal\AppModel\OleCmdHelper.cs (2)
116
IInputElement target =
FocusManager
.GetFocusedElement(Application.Current.MainWindow);
173
IInputElement target =
FocusManager
.GetFocusedElement(Application.Current.MainWindow);
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (2)
61
FocusManager
.SetIsFocusScope(findToolBarHost, true);
80
findToolBarHost.ClearValue(
FocusManager
.IsFocusScopeProperty);
src\Framework\System\Windows\Controls\ContextMenu.cs (1)
571
FocusManager
.SetFocusedElement(cm, null);
src\Framework\System\Windows\Controls\Frame.cs (1)
229
IInputElement focusedElement =
FocusManager
.GetFocusedElement(doContent) as IInputElement;
src\Framework\System\Windows\Controls\Primitives\ButtonBase.cs (1)
92
Visual focusScope =
FocusManager
.GetFocusScope(this) as Visual;
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (1)
71
FocusManager
.IsFocusScopeProperty.OverrideMetadata(typeof(MenuBase), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox));
src\Framework\System\Windows\Controls\Primitives\Selector.cs (2)
1350
if (
FocusManager
.GetFocusScope(currentFocus) !=
FocusManager
.GetFocusScope(this))
src\Framework\System\Windows\Controls\ToolBar.cs (1)
80
FocusManager
.IsFocusScopeProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox));
src\Framework\System\Windows\Controls\TreeView.cs (1)
768
if (
FocusManager
.GetFocusScope(currentFocus) != root)
src\Framework\System\windows\Documents\TextSelection.cs (1)
346
((IsRootElement(
FocusManager
.GetFocusScope(uiScope)) && IsFocusWithinRoot()) || // either UiScope root window has keyboard focus
src\Framework\System\Windows\FrameworkElement.cs (1)
5343
IInputElement activeElement =
FocusManager
.GetFocusedElement(fe, true);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (4)
974
DependencyObject focusScope =
FocusManager
.GetFocusScope(focusTarget);
977
FocusManager
.SetFocusedElement(focusScope, focusTarget as IInputElement);
1677
DependencyObject focusedElement =
FocusManager
.GetFocusedElement(e) as DependencyObject;
2714
return
FocusManager
.GetIsFocusScope(e) || GetParent(e) == null;
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
305
case 213: t = () => typeof(
FocusManager
); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4374
typeof(System.Windows.Input.
FocusManager
),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
5757
case KnownElements.FocusManager: t = typeof(System.Windows.Input.
FocusManager
); break;
src\Framework\System\Windows\Navigation\NavigationService.cs (3)
960
if (!((bool) focusScope.GetValue(
FocusManager
.IsFocusScopeProperty)))
962
focusScope =
FocusManager
.GetFocusScope(focusScope);
964
FocusManager
.SetFocusedElement(focusScope, null);
src\Framework\System\Windows\Window.cs (2)
93
FocusManager
.IsFocusScopeProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox));
2141
IInputElement focusedElement =
FocusManager
.GetFocusedElement(doContent) as IInputElement;
System.Activities.Presentation (12)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (1)
85
this.AddHandler(
FocusManager
.GotFocusEvent, new RoutedEventHandler(OnSomeoneGotFocus));
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (4)
48
FocusManager
.FocusedElementProperty.OverrideMetadata(typeof(FrameworkElement), new PropertyMetadata(null, null, new CoerceValueCallback(FocusScopeManager.FocusManager_CoerceFocusedElement)));
159
UIElement focusScope =
FocusManager
.GetFocusScope(newElementFocus) as UIElement;
221
if (!
FocusManager
.GetIsFocusScope(element))
346
FocusManager
.SetFocusedElement(curScope, null);
System.Activities.Presentation\System\Activities\Presentation\DialogWindow.cs (1)
58
var focusedElement =
FocusManager
.GetFocusedElement(rootVisual);
System.Activities.Presentation\System\Activities\Presentation\View\VBIdentifierDesigner.xaml.cs (2)
106
DependencyObject focusScope =
FocusManager
.GetFocusScope(this.IdentifierTextBox);
107
FocusManager
.SetFocusedElement(focusScope, this);
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (4)
234
if ((
FocusManager
.GetFocusedElement(this.view) as TextBox) != null)
236
FocusManager
.SetFocusedElement(this.view, null);
641
oldFocus =
FocusManager
.GetFocusedElement(this.propertyInspector) as UIElement;
646
oldFocus =
FocusManager
.GetFocusedElement(this.view) as UIElement;