1 instantiation of KeyboardNavigation
PresentationFramework (1)
src\Framework\System\Windows\FrameworkElement.cs (1)
5842_keyboardNavigation = new KeyboardNavigation();
173 references to KeyboardNavigation
PresentationFramework (171)
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (3)
359KeyboardNavigation.SetTabIndex(_DPHost, index); 1044KeyboardNavigation.SetTabNavigation(host, KeyboardNavigationMode.Local); 1045KeyboardNavigation.SetControlTabNavigation(host, KeyboardNavigationMode.Local);
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (2)
83SetValue(KeyboardNavigation.TabNavigationProperty, KeyboardNavigationMode.Continue); 84SetValue(KeyboardNavigation.ControlTabNavigationProperty, KeyboardNavigationMode.Continue);
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (4)
60KeyboardNavigation.SetTabNavigation(findToolBarHost, KeyboardNavigationMode.Continue); 79KeyboardNavigation.SetTabNavigation(findToolBarHost, KeyboardNavigationMode.None); 366FocusNavigationDirection direction = KeyboardNavigation.KeyToTraversalDirection(e.Key); 367DependencyObject predictedFocus = KeyboardNavigation.Current.PredictFocusedElement(focusedElement, direction);
src\Framework\System\Windows\Controls\AccessText.cs (1)
559trigger.Property = KeyboardNavigation.ShowKeyboardCuesProperty;
src\Framework\System\Windows\Controls\Button.cs (3)
92KeyboardNavigation.Current.FocusChanged += focusChangedEventHandler; 98KeyboardNavigation.Current.FocusChanged -= focusChangedEventHandler; 227if (thisScope == focusScope && (focusDO == null || (bool)focusDO.GetValue(KeyboardNavigation.AcceptsReturnProperty) == false))
src\Framework\System\Windows\Controls\Calendar.cs (2)
85KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(Calendar), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); 86KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(Calendar), new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained));
src\Framework\System\Windows\Controls\CheckBox.cs (1)
44KeyboardNavigation.AcceptsReturnProperty.OverrideMetadata(typeof(CheckBox), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox));
src\Framework\System\Windows\Controls\ComboBox.cs (3)
47KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(ComboBox), new FrameworkPropertyMetadata(KeyboardNavigationMode.Local)); 48KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(ComboBox), new FrameworkPropertyMetadata(KeyboardNavigationMode.None)); 49KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(ComboBox), new FrameworkPropertyMetadata(KeyboardNavigationMode.None));
src\Framework\System\Windows\Controls\ContextMenu.cs (5)
54KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 55KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained)); 56KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 169ctrl.SetValue(KeyboardNavigation.ShowKeyboardCuesProperty, KeyboardNavigation.IsKeyboardMostRecentInputDevice());
src\Framework\System\Windows\Controls\Control.cs (2)
341= KeyboardNavigation.TabIndexProperty.AddOwner(typeof(Control)); 359= KeyboardNavigation.IsTabStopProperty.AddOwner(typeof(Control));
src\Framework\System\Windows\Controls\DataGrid.cs (6)
58KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained)); 59KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); 5510KeyboardNavigation.ShowFocusVisual(); 5591KeyboardNavigation keyboardNavigation = KeyboardNavigation.Current; 5600KeyboardNavigationMode keyboardNavigationMode = KeyboardNavigation.GetDirectionalNavigation(this);
src\Framework\System\Windows\Controls\DataGridCell.cs (1)
37KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(DataGridCell), new FrameworkPropertyMetadata(KeyboardNavigationMode.Local));
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (1)
33KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(DataGridCellsPanel), new FrameworkPropertyMetadata(KeyboardNavigationMode.Local));
src\Framework\System\Windows\Controls\DataGridComboBoxColumn.cs (1)
38KeyboardNavigation.IsTabStopProperty.OverrideMetadata(typeof(TextBlockComboBox), new FrameworkPropertyMetadata(false));
src\Framework\System\Windows\Controls\DataGridHelper.cs (2)
206if (uielement.Focusable && KeyboardNavigation.GetIsTabStop(uielement)) 214if (contentElement != null && contentElement.Focusable && KeyboardNavigation.GetIsTabStop(contentElement))
src\Framework\System\Windows\Controls\DatePicker.cs (2)
92KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(DatePicker), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); 93KeyboardNavigation.IsTabStopProperty.OverrideMetadata(typeof(DatePicker), new FrameworkPropertyMetadata(false));
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
2124fe.SetValue(KeyboardNavigation.IsTabStopProperty, false);
src\Framework\System\Windows\Controls\Frame.cs (2)
137KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(Frame), new FrameworkPropertyMetadata(KeyboardNavigationMode.Local)); 138KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(Frame), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once));
src\Framework\System\Windows\Controls\ItemsControl.cs (7)
1882startingElement = KeyboardNavigation.GetParent(startingElement) as DependencyObject; 2008KeyboardNavigationMode mode = KeyboardNavigation.GetDirectionalNavigation(startingParent); 2020nextElement = KeyboardNavigation.Current.PredictFocusedElement(startingElement, 2029bool isCycle = KeyboardNavigation.GetDirectionalNavigation(this) == KeyboardNavigationMode.Cycle; 2149nextElement = KeyboardNavigation.Current.PredictFocusedElement(startingElement, 2858currentElement = KeyboardNavigation.Current.PredictFocusedElementAtViewportEdge(startingElement, 3216KeyboardNavigation.ShowFocusVisual();
src\Framework\System\Windows\Controls\ListBox.cs (8)
67KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(ListBox), new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained)); 68KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(ListBox), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); 353KeyboardNavigation.ShowFocusVisual(); 375if (!NavigateByLine(KeyboardNavigation.KeyToTraversalDirection(key), 400if (e.Key == Key.Enter && (bool)GetValue(KeyboardNavigation.AcceptsReturnProperty) == false) 543if (!KeyboardNavigation.IsKeyboardMostRecentInputDevice()) 556visualOldFocus = KeyboardNavigation.GetParentUIElementFromContentElement(ce); 748KeyboardNavigation.SetTabOnceActiveElement(this, listItem);
src\Framework\System\Windows\Controls\ListBoxItem.cs (2)
53KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(ListBoxItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); 54KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(ListBoxItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.Local));
src\Framework\System\Windows\Controls\Menu.cs (6)
65KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(Menu), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); 66KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(Menu), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 156_enterMenuModeHandler = new KeyboardNavigation.EnterMenuModeEventHandler(OnEnterMenuMode); 160KeyboardNavigation.Current.EnterMenuMode += _enterMenuModeHandler; 173KeyboardNavigation.Current.EnterMenuMode -= _enterMenuModeHandler; 415private KeyboardNavigation.EnterMenuModeEventHandler _enterMenuModeHandler;
src\Framework\System\Windows\Controls\MenuItem.cs (2)
194KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(MenuItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.None)); 2438parent.NavigateByLine(parent.FocusedInfo, KeyboardNavigation.KeyToTraversalDirection(key), new ItemNavigateArgs(Keyboard.PrimaryDevice, modifiers));
src\Framework\System\Windows\Controls\Primitives\ButtonBase.cs (2)
36KeyboardNavigation.AcceptsReturnProperty.OverrideMetadata(typeof(ButtonBase), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); 621else if (e.Key == Key.Enter && (bool)GetValue(KeyboardNavigation.AcceptsReturnProperty))
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (2)
67KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(CalendarItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); 68KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(CalendarItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained));
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (3)
272if (KeyboardNavigation.IsKeyboardMostRecentInputDevice()) 275KeyboardNavigation.EnableKeyboardCues(this, true); 281KeyboardNavigation.EnableKeyboardCues(this, false);
src\Framework\System\Windows\Controls\Primitives\Selector.cs (3)
59KeyboardNavigation.Current.FocusEnterMainFocusScope += _focusEnterMainFocusScopeEventHandler; 1347UIElement root = KeyboardNavigation.GetVisualRoot(this) as UIElement; 1398KeyboardNavigation.Current.UpdateActiveElement(this, element);
src\Framework\System\Windows\Controls\Primitives\TabPanel.cs (2)
56KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(TabPanel), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); 57KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(TabPanel), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle));
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (1)
500KeyboardNavigation.AcceptsReturnProperty.AddOwner(typeof(TextBoxBase));
src\Framework\System\Windows\Controls\RadioButton.cs (3)
34KeyboardNavigation.AcceptsReturnProperty.OverrideMetadata(typeof(RadioButton), new FrameworkPropertyMetadata(MS.Internal.KnownBoxes.BooleanBoxes.FalseBox)); 141Visual rootScope = KeyboardNavigation.GetVisualRoot(this); 160if (rb != this && (rb.IsChecked == true) && rootScope == KeyboardNavigation.GetVisualRoot(rb))
src\Framework\System\Windows\Controls\RichTextBox.cs (1)
53KeyboardNavigation.AcceptsReturnProperty.OverrideMetadata(typeof(RichTextBox), new FrameworkPropertyMetadata(true));
src\Framework\System\Windows\Controls\ScrollViewer.cs (7)
979FocusNavigationDirection direction = KeyboardNavigation.KeyToTraversalDirection(e.Key); 1054Visual baseRoot = KeyboardNavigation.GetVisualRoot(scp); 1055Visual elementRoot = KeyboardNavigation.GetVisualRoot(element); 1078elementRoot = KeyboardNavigation.GetVisualRoot(element); 1081Rect viewPortRect = KeyboardNavigation.GetRectangle(scp); 1082Rect elementRect = KeyboardNavigation.GetRectangle(element); 2964KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(ScrollViewer), new FrameworkPropertyMetadata(KeyboardNavigationMode.Local));
src\Framework\System\Windows\Controls\StickyNote.cs (1)
138KeyboardNavigation.TabNavigationProperty.OverrideMetadata(owner, new FrameworkPropertyMetadata(KeyboardNavigationMode.Local));
src\Framework\System\Windows\Controls\TabControl.cs (3)
49KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(TabControl), new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained)); 570KeyboardNavigation.SetTabOnceActiveElement(visualParent, tabItem); 571KeyboardNavigation.SetTabOnceActiveElement(this, visualParent);
src\Framework\System\Windows\Controls\TabItem.cs (4)
59KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(TabItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained)); 60KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(TabItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.Local)); 123BindingOperations.SetBinding(tabItem, KeyboardNavigation.DirectionalNavigationMarginProperty, binding); 127BindingOperations.ClearBinding(tabItem, KeyboardNavigation.DirectionalNavigationMarginProperty);
src\Framework\System\Windows\Controls\ToolBar.cs (4)
77KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 78KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 79KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); 288if (KeyboardNavigation.IsKeyboardMostRecentInputDevice())
src\Framework\System\Windows\Controls\ToolBarTray.cs (1)
55KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(ToolBarTray), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle));
src\Framework\System\Windows\Controls\TreeView.cs (4)
40KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(TreeView), new FrameworkPropertyMetadata(KeyboardNavigationMode.Contained)); 41KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(TreeView), new FrameworkPropertyMetadata(KeyboardNavigationMode.None)); 53KeyboardNavigation.Current.FocusEnterMainFocusScope += _focusEnterMainFocusScopeEventHandler; 765UIElement root = KeyboardNavigation.GetVisualRoot(this) as UIElement;
src\Framework\System\Windows\Controls\TreeViewItem.cs (3)
40KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.Continue)); 41KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(KeyboardNavigationMode.None)); 734predict = KeyboardNavigation.GetParent(predict);
src\Framework\System\Windows\Controls\UserControl.cs (1)
32KeyboardNavigation.IsTabStopProperty.OverrideMetadata(typeof(UserControl), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox));
src\Framework\System\windows\Documents\TextEditor.cs (1)
962return _uiScope == null ? true : (bool)_uiScope.GetValue(KeyboardNavigation.AcceptsReturnProperty);
src\Framework\System\Windows\FrameworkContentElement.cs (8)
1019return KeyboardNavigation.Current.Navigate(this, request); 1033return KeyboardNavigation.Current.PredictFocusedElement(this, direction); 1057KeyboardNavigation.UpdateFocusedElement(fce); 1059KeyboardNavigation keyNav = KeyboardNavigation.Current; 1060KeyboardNavigation.ShowFocusVisual(); 1069KeyboardNavigation.Current.HideFocusVisual(); 1073KeyboardNavigation.Current.NotifyFocusChanged(sender, e);
src\Framework\System\Windows\FrameworkElement.cs (10)
5318return KeyboardNavigation.Current.Navigate(this, request); 5332return KeyboardNavigation.Current.PredictFocusedElement(this, direction); 5366KeyboardNavigation.UpdateFocusedElement(fe); 5368KeyboardNavigation keyNav = KeyboardNavigation.Current; 5369KeyboardNavigation.ShowFocusVisual(); 5379KeyboardNavigation.Current.HideFocusVisual(); 5383KeyboardNavigation.Current.NotifyFocusChanged(sender, e); 5854internal KeyboardNavigation _keyboardNavigation; 5867internal static KeyboardNavigation KeyboardNavigation
src\Framework\System\Windows\Input\KeyboardNavigation.cs (23)
104= DependencyProperty.RegisterAttached("TabOnceActiveElement", typeof(WeakReference), typeof(KeyboardNavigation)); 127= DependencyProperty.RegisterAttached("ControlTabOnceActiveElement", typeof(WeakReference), typeof(KeyboardNavigation)); 191typeof(KeyboardNavigation), 204typeof(KeyboardNavigation), 216typeof(KeyboardNavigation), 231typeof(KeyboardNavigation), 246typeof(KeyboardNavigation), 261typeof(KeyboardNavigation), 272typeof(KeyboardNavigation), 296typeof(KeyboardNavigation), 344/// <seealso cref="KeyboardNavigation.TabIndexProperty" /> 359/// <seealso cref="KeyboardNavigation.TabIndexProperty" /> 375/// <seealso cref="KeyboardNavigation.IsTabStopProperty" /> 390/// <seealso cref="KeyboardNavigation.IsTabStopProperty" /> 406/// <seealso cref="KeyboardNavigation.TabNavigationProperty" /> 421/// <seealso cref="KeyboardNavigation.TabNavigationProperty" /> 438/// <seealso cref="KeyboardNavigation.ControlTabNavigationProperty" /> 453/// <seealso cref="KeyboardNavigation.ControlTabNavigationProperty" /> 470/// <seealso cref="KeyboardNavigation.DirectionalNavigationProperty" /> 485/// <seealso cref="KeyboardNavigation.DirectionalNavigationProperty" /> 502/// <seealso cref="KeyboardNavigation.AcceptsReturnProperty" /> 517/// <seealso cref="KeyboardNavigation.AcceptsReturnProperty" /> 1231internal static KeyboardNavigation Current
src\Framework\System\Windows\Interop\ActiveXHost.cs (1)
97KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(ActiveXHost), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once));
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (6)
7536Type type = typeof(System.Windows.Input.KeyboardNavigation); 7537DependencyProperty dp = System.Windows.Input.KeyboardNavigation.DirectionalNavigationProperty; 7539this.GetXamlType(typeof(System.Windows.Input.KeyboardNavigation)), // DeclaringType 7553Type type = typeof(System.Windows.Input.KeyboardNavigation); 7554DependencyProperty dp = System.Windows.Input.KeyboardNavigation.TabNavigationProperty; 7556this.GetXamlType(typeof(System.Windows.Input.KeyboardNavigation)), // DeclaringType
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11845typeof(System.Windows.Input.KeyboardNavigation),
src\Framework\System\Windows\SystemResources.cs (2)
1328System.Windows.Input.KeyboardNavigation.AlwaysShowFocusVisual = SystemParameters.KeyboardCues; 1329fe.CoerceValue(System.Windows.Input.KeyboardNavigation.ShowKeyboardCuesProperty);
src\Framework\System\Windows\Window.cs (7)
90KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 91KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 92KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(KeyboardNavigationMode.Cycle)); 5660if (KeyboardNavigation.IsKeyboardMostRecentInputDevice()) 5662_previousKeyboardCuesProperty = (bool)GetValue(KeyboardNavigation.ShowKeyboardCuesProperty); 5663SetValue(KeyboardNavigation.ShowKeyboardCuesProperty, BooleanBoxes.TrueBox); 5677SetValue(KeyboardNavigation.ShowKeyboardCuesProperty, BooleanBoxes.Box(_previousKeyboardCuesProperty));
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\WorkflowElementDialog.cs (2)
159SetValue(KeyboardNavigation.TabNavigationProperty, KeyboardNavigationMode.Local); 160SetValue(KeyboardNavigation.IsTabStopProperty, false);