1 instantiation of KeyboardNavigation
PresentationFramework (1)
System\Windows\FrameworkElement.cs (1)
5844_keyboardNavigation = new KeyboardNavigation();
179 references to KeyboardNavigation
PresentationFramework (171)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (3)
345KeyboardNavigation.SetTabIndex(_DPHost, index); 1022KeyboardNavigation.SetTabNavigation(host, KeyboardNavigationMode.Local); 1023KeyboardNavigation.SetControlTabNavigation(host, KeyboardNavigationMode.Local);
MS\Internal\Documents\DocumentViewerHelper.cs (4)
50KeyboardNavigation.SetTabNavigation(findToolBarHost, KeyboardNavigationMode.Continue); 69KeyboardNavigation.SetTabNavigation(findToolBarHost, KeyboardNavigationMode.None); 346FocusNavigationDirection direction = KeyboardNavigation.KeyToTraversalDirection(e.Key); 347DependencyObject predictedFocus = KeyboardNavigation.Current.PredictFocusedElement(focusedElement, direction);
System\Windows\Controls\AccessText.cs (1)
559trigger.Property = KeyboardNavigation.ShowKeyboardCuesProperty;
System\Windows\Controls\Button.cs (3)
96KeyboardNavigation.Current.FocusChanged += focusChangedEventHandler; 102KeyboardNavigation.Current.FocusChanged -= focusChangedEventHandler; 231if (thisScope == focusScope && (focusDO == null || (bool)focusDO.GetValue(KeyboardNavigation.AcceptsReturnProperty) == false))
System\Windows\Controls\Calendar.cs (2)
84KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(Calendar), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); 85KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(Calendar), new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained));
System\Windows\Controls\CheckBox.cs (1)
43KeyboardNavigation.AcceptsReturnProperty.OverrideMetadata(typeof(CheckBox), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox));
System\Windows\Controls\ComboBox.cs (3)
46KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(ComboBox), new FrameworkPropertyMetadata(KeyboardNavigationMode.Local)); 47KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(ComboBox), new FrameworkPropertyMetadata(KeyboardNavigationMode.None)); 48KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(ComboBox), new FrameworkPropertyMetadata(KeyboardNavigationMode.None));
System\Windows\Controls\ContextMenu.cs (5)
50KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 51KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained)); 52KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 165ctrl.SetValue(KeyboardNavigation.ShowKeyboardCuesProperty, KeyboardNavigation.IsKeyboardMostRecentInputDevice());
System\Windows\Controls\Control.cs (2)
340= KeyboardNavigation.TabIndexProperty.AddOwner(typeof(Control)); 358= KeyboardNavigation.IsTabStopProperty.AddOwner(typeof(Control));
System\Windows\Controls\DataGrid.cs (6)
57KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained)); 58KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); 5505KeyboardNavigation.ShowFocusVisual(); 5586KeyboardNavigation keyboardNavigation = KeyboardNavigation.Current; 5595KeyboardNavigationMode keyboardNavigationMode = KeyboardNavigation.GetDirectionalNavigation(this);
System\Windows\Controls\DataGridCell.cs (1)
39KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(DataGridCell), new FrameworkPropertyMetadata(KeyboardNavigationMode.Local));
System\Windows\Controls\DataGridCellsPanel.cs (1)
32KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(DataGridCellsPanel), new FrameworkPropertyMetadata(KeyboardNavigationMode.Local));
System\Windows\Controls\DataGridComboBoxColumn.cs (1)
37KeyboardNavigation.IsTabStopProperty.OverrideMetadata(typeof(TextBlockComboBox), new FrameworkPropertyMetadata(false));
System\Windows\Controls\DataGridHelper.cs (2)
205if (uielement.Focusable && KeyboardNavigation.GetIsTabStop(uielement)) 213if (contentElement != null && contentElement.Focusable && KeyboardNavigation.GetIsTabStop(contentElement))
System\Windows\Controls\DatePicker.cs (2)
91KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(DatePicker), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); 92KeyboardNavigation.IsTabStopProperty.OverrideMetadata(typeof(DatePicker), new FrameworkPropertyMetadata(false));
System\Windows\Controls\DocumentViewer.cs (1)
2079fe.SetValue(KeyboardNavigation.IsTabStopProperty, false);
System\Windows\Controls\Frame.cs (2)
130KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(Frame), new FrameworkPropertyMetadata(KeyboardNavigationMode.Local)); 131KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(Frame), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once));
System\Windows\Controls\ItemsControl.cs (7)
1879startingElement = KeyboardNavigation.GetParent(startingElement) as DependencyObject; 2005KeyboardNavigationMode mode = KeyboardNavigation.GetDirectionalNavigation(startingParent); 2017nextElement = KeyboardNavigation.Current.PredictFocusedElement(startingElement, 2026bool isCycle = KeyboardNavigation.GetDirectionalNavigation(this) == KeyboardNavigationMode.Cycle; 2146nextElement = KeyboardNavigation.Current.PredictFocusedElement(startingElement, 2855currentElement = KeyboardNavigation.Current.PredictFocusedElementAtViewportEdge(startingElement, 3285KeyboardNavigation.ShowFocusVisual();
System\Windows\Controls\ListBox.cs (8)
69KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(ListBox), new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained)); 70KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(ListBox), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); 355KeyboardNavigation.ShowFocusVisual(); 377if (!NavigateByLine(KeyboardNavigation.KeyToTraversalDirection(key), 402if (e.Key == Key.Enter && (bool)GetValue(KeyboardNavigation.AcceptsReturnProperty) == false) 588if (!KeyboardNavigation.IsKeyboardMostRecentInputDevice()) 601visualOldFocus = KeyboardNavigation.GetParentUIElementFromContentElement(ce); 793KeyboardNavigation.SetTabOnceActiveElement(this, listItem);
System\Windows\Controls\ListBoxItem.cs (2)
53KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(ListBoxItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); 54KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(ListBoxItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.Local));
System\Windows\Controls\Menu.cs (6)
62KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(Menu), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); 63KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(Menu), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 148_enterMenuModeHandler = new KeyboardNavigation.EnterMenuModeEventHandler(OnEnterMenuMode); 149KeyboardNavigation.Current.EnterMenuMode += _enterMenuModeHandler; 157KeyboardNavigation.Current.EnterMenuMode -= _enterMenuModeHandler; 389private KeyboardNavigation.EnterMenuModeEventHandler _enterMenuModeHandler;
System\Windows\Controls\MenuItem.cs (2)
191KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(MenuItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.None)); 2378parent.NavigateByLine(parent.FocusedInfo, KeyboardNavigation.KeyToTraversalDirection(key), new ItemNavigateArgs(Keyboard.PrimaryDevice, modifiers));
System\Windows\Controls\PopupControlService.cs (2)
184if (KeyboardNavigation.IsKeyboardMostRecentInputDevice()) 875UIElement uieParent = KeyboardNavigation.GetParentUIElementFromContentElement(ownerCE, ref ichParent);
System\Windows\Controls\Primitives\ButtonBase.cs (2)
39KeyboardNavigation.AcceptsReturnProperty.OverrideMetadata(typeof(ButtonBase), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); 632else if (e.Key == Key.Enter && (bool)GetValue(KeyboardNavigation.AcceptsReturnProperty))
System\Windows\Controls\Primitives\CalendarItem.cs (2)
66KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(CalendarItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); 67KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(CalendarItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained));
System\Windows\Controls\Primitives\MenuBase.cs (3)
270if (KeyboardNavigation.IsKeyboardMostRecentInputDevice()) 273KeyboardNavigation.EnableKeyboardCues(this, true); 279KeyboardNavigation.EnableKeyboardCues(this, false);
System\Windows\Controls\Primitives\Selector.cs (3)
58KeyboardNavigation.Current.FocusEnterMainFocusScope += _focusEnterMainFocusScopeEventHandler; 1329UIElement root = KeyboardNavigation.GetVisualRoot(this) as UIElement; 1380KeyboardNavigation.Current.UpdateActiveElement(this, element);
System\Windows\Controls\Primitives\TabPanel.cs (2)
55KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(TabPanel), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); 56KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(TabPanel), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle));
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
477KeyboardNavigation.AcceptsReturnProperty.AddOwner(typeof(TextBoxBase));
System\Windows\Controls\RadioButton.cs (3)
38KeyboardNavigation.AcceptsReturnProperty.OverrideMetadata(typeof(RadioButton), new FrameworkPropertyMetadata(MS.Internal.KnownBoxes.BooleanBoxes.FalseBox)); 145Visual rootScope = KeyboardNavigation.GetVisualRoot(this); 164if (rb != this && (rb.IsChecked == true) && rootScope == KeyboardNavigation.GetVisualRoot(rb) && rootScope != null)
System\Windows\Controls\RichTextBox.cs (1)
51KeyboardNavigation.AcceptsReturnProperty.OverrideMetadata(typeof(RichTextBox), new FrameworkPropertyMetadata(true));
System\Windows\Controls\ScrollViewer.cs (7)
952FocusNavigationDirection direction = KeyboardNavigation.KeyToTraversalDirection(e.Key); 1027Visual baseRoot = KeyboardNavigation.GetVisualRoot(scp); 1028Visual elementRoot = KeyboardNavigation.GetVisualRoot(element); 1051elementRoot = KeyboardNavigation.GetVisualRoot(element); 1054Rect viewPortRect = KeyboardNavigation.GetRectangle(scp); 1055Rect elementRect = KeyboardNavigation.GetRectangle(element); 2924KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(ScrollViewer), new FrameworkPropertyMetadata(KeyboardNavigationMode.Local));
System\Windows\Controls\StickyNote.cs (1)
128KeyboardNavigation.TabNavigationProperty.OverrideMetadata(owner, new FrameworkPropertyMetadata(KeyboardNavigationMode.Local));
System\Windows\Controls\TabControl.cs (3)
48KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(TabControl), new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained)); 569KeyboardNavigation.SetTabOnceActiveElement(visualParent, tabItem); 570KeyboardNavigation.SetTabOnceActiveElement(this, visualParent);
System\Windows\Controls\TabItem.cs (4)
58KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(TabItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained)); 59KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(TabItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.Local)); 122BindingOperations.SetBinding(tabItem, KeyboardNavigation.DirectionalNavigationMarginProperty, binding); 126BindingOperations.ClearBinding(tabItem, KeyboardNavigation.DirectionalNavigationMarginProperty);
System\Windows\Controls\ToolBar.cs (4)
76KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 77KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 78KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); 287if (KeyboardNavigation.IsKeyboardMostRecentInputDevice())
System\Windows\Controls\ToolBarTray.cs (1)
54KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(ToolBarTray), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle));
System\Windows\Controls\TreeView.cs (4)
39KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(TreeView), new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained)); 40KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(TreeView), new FrameworkPropertyMetadata(KeyboardNavigationMode.None)); 52KeyboardNavigation.Current.FocusEnterMainFocusScope += _focusEnterMainFocusScopeEventHandler; 763UIElement root = KeyboardNavigation.GetVisualRoot(this) as UIElement;
System\Windows\Controls\TreeViewItem.cs (3)
39KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.Continue)); 40KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.None)); 733predict = KeyboardNavigation.GetParent(predict);
System\Windows\Controls\UserControl.cs (1)
30KeyboardNavigation.IsTabStopProperty.OverrideMetadata(typeof(UserControl), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox));
System\windows\Documents\TextEditor.cs (1)
935return _uiScope == null ? true : (bool)_uiScope.GetValue(KeyboardNavigation.AcceptsReturnProperty);
System\Windows\FrameworkContentElement.cs (8)
1010return KeyboardNavigation.Current.Navigate(this, request); 1024return KeyboardNavigation.Current.PredictFocusedElement(this, direction); 1048KeyboardNavigation.UpdateFocusedElement(fce); 1050KeyboardNavigation keyNav = KeyboardNavigation.Current; 1051KeyboardNavigation.ShowFocusVisual(); 1060KeyboardNavigation.Current.HideFocusVisual(); 1064KeyboardNavigation.Current.NotifyFocusChanged(sender, e);
System\Windows\FrameworkElement.cs (10)
5320return KeyboardNavigation.Current.Navigate(this, request); 5334return KeyboardNavigation.Current.PredictFocusedElement(this, direction); 5368KeyboardNavigation.UpdateFocusedElement(fe); 5370KeyboardNavigation keyNav = KeyboardNavigation.Current; 5371KeyboardNavigation.ShowFocusVisual(); 5381KeyboardNavigation.Current.HideFocusVisual(); 5385KeyboardNavigation.Current.NotifyFocusChanged(sender, e); 5848internal KeyboardNavigation _keyboardNavigation; 5861internal static KeyboardNavigation KeyboardNavigation
System\Windows\Input\KeyboardNavigation.cs (23)
97= DependencyProperty.RegisterAttached("TabOnceActiveElement", typeof(WeakReference), typeof(KeyboardNavigation)); 120= DependencyProperty.RegisterAttached("ControlTabOnceActiveElement", typeof(WeakReference), typeof(KeyboardNavigation)); 179typeof(KeyboardNavigation), 192typeof(KeyboardNavigation), 204typeof(KeyboardNavigation), 219typeof(KeyboardNavigation), 234typeof(KeyboardNavigation), 249typeof(KeyboardNavigation), 260typeof(KeyboardNavigation), 284typeof(KeyboardNavigation), 332/// <seealso cref="KeyboardNavigation.TabIndexProperty" /> 344/// <seealso cref="KeyboardNavigation.TabIndexProperty" /> 357/// <seealso cref="KeyboardNavigation.IsTabStopProperty" /> 369/// <seealso cref="KeyboardNavigation.IsTabStopProperty" /> 382/// <seealso cref="KeyboardNavigation.TabNavigationProperty" /> 394/// <seealso cref="KeyboardNavigation.TabNavigationProperty" /> 408/// <seealso cref="KeyboardNavigation.ControlTabNavigationProperty" /> 420/// <seealso cref="KeyboardNavigation.ControlTabNavigationProperty" /> 434/// <seealso cref="KeyboardNavigation.DirectionalNavigationProperty" /> 446/// <seealso cref="KeyboardNavigation.DirectionalNavigationProperty" /> 460/// <seealso cref="KeyboardNavigation.AcceptsReturnProperty" /> 472/// <seealso cref="KeyboardNavigation.AcceptsReturnProperty" /> 1159internal static KeyboardNavigation Current
System\Windows\Interop\ActiveXHost.cs (1)
90KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(ActiveXHost), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once));
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (6)
7578Type type = typeof(System.Windows.Input.KeyboardNavigation); 7579DependencyProperty dp = System.Windows.Input.KeyboardNavigation.DirectionalNavigationProperty; 7581this.GetXamlType(typeof(System.Windows.Input.KeyboardNavigation)), // DeclaringType 7595Type type = typeof(System.Windows.Input.KeyboardNavigation); 7596DependencyProperty dp = System.Windows.Input.KeyboardNavigation.TabNavigationProperty; 7598this.GetXamlType(typeof(System.Windows.Input.KeyboardNavigation)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11849typeof(System.Windows.Input.KeyboardNavigation),
System\Windows\SystemResources.cs (2)
1270System.Windows.Input.KeyboardNavigation.AlwaysShowFocusVisual = SystemParameters.KeyboardCues; 1271fe.CoerceValue(System.Windows.Input.KeyboardNavigation.ShowKeyboardCuesProperty);
System\Windows\Window.cs (7)
80KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 81KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 82KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 5453if (KeyboardNavigation.IsKeyboardMostRecentInputDevice()) 5455_previousKeyboardCuesProperty = (bool)GetValue(KeyboardNavigation.ShowKeyboardCuesProperty); 5456SetValue(KeyboardNavigation.ShowKeyboardCuesProperty, BooleanBoxes.TrueBox); 5470SetValue(KeyboardNavigation.ShowKeyboardCuesProperty, BooleanBoxes.Box(_previousKeyboardCuesProperty));
System.Windows.Controls.Ribbon (6)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (2)
120KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained)); 121KeyboardNavigation.TabNavigationProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle));
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
82KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(KeyboardNavigationMode.Local));
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
115KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(KeyboardNavigationMode.Local));
Microsoft\Windows\Controls\Ribbon\RibbonTabHeaderItemsControl.cs (2)
38KeyboardNavigation.TabNavigationProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); 39KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(KeyboardNavigationMode.Once));
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (2)
1487SWI.KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata( 1490SWI.KeyboardNavigation.TabNavigationProperty.OverrideMetadata(