src\Framework\System\Windows\Input\KeyboardNavigation.cs (58)
230typeof(KeyboardNavigationMode),
232new FrameworkPropertyMetadata(KeyboardNavigationMode.Continue),
245typeof(KeyboardNavigationMode),
247new FrameworkPropertyMetadata(KeyboardNavigationMode.Continue),
260typeof(KeyboardNavigationMode),
262new FrameworkPropertyMetadata(KeyboardNavigationMode.Continue),
407public static void SetTabNavigation(DependencyObject element, KeyboardNavigationMode mode)
424public static KeyboardNavigationMode GetTabNavigation(DependencyObject element)
430return (KeyboardNavigationMode)element.GetValue(TabNavigationProperty);
439public static void SetControlTabNavigation(DependencyObject element, KeyboardNavigationMode mode)
456public static KeyboardNavigationMode GetControlTabNavigation(DependencyObject element)
462return (KeyboardNavigationMode)element.GetValue(ControlTabNavigationProperty);
471public static void SetDirectionalNavigation(DependencyObject element, KeyboardNavigationMode mode)
488public static KeyboardNavigationMode GetDirectionalNavigation(DependencyObject element)
494return (KeyboardNavigationMode)element.GetValue(DirectionalNavigationProperty);
530KeyboardNavigationMode value = (KeyboardNavigationMode)o;
531return value == KeyboardNavigationMode.Contained
532|| value == KeyboardNavigationMode.Continue
533|| value == KeyboardNavigationMode.Cycle
534|| value == KeyboardNavigationMode.None
535|| value == KeyboardNavigationMode.Once
536|| value == KeyboardNavigationMode.Local;
1021if (GetKeyNavigationMode(container) == KeyboardNavigationMode.Once)
1220KeyboardNavigationMode mode = GetKeyNavigationMode(parent);
1221if (mode == KeyboardNavigationMode.Contained || mode == KeyboardNavigationMode.Cycle)
2014return GetKeyNavigationMode(e) != KeyboardNavigationMode.Continue;
2058private KeyboardNavigationMode GetKeyNavigationMode(DependencyObject e)
2060return (KeyboardNavigationMode)e.GetValue(_navigationProperty);
2115private DependencyObject GetNextTabWithNextIndex(DependencyObject e, DependencyObject container, KeyboardNavigationMode tabbingType)
2150if (tabbingType == KeyboardNavigationMode.Cycle && nextTabElement == null)
2156private DependencyObject GetNextTabInGroup(DependencyObject e, DependencyObject container, KeyboardNavigationMode tabbingType)
2159if (tabbingType == KeyboardNavigationMode.None)
2168if (tabbingType == KeyboardNavigationMode.Once)
2182KeyboardNavigationMode tabbingType = GetKeyNavigationMode(container);
2196if (tabbingType == KeyboardNavigationMode.Once || tabbingType == KeyboardNavigationMode.None)
2211KeyboardNavigationMode currentTabbingType = tabbingType;
2229if (currentTabbingType == KeyboardNavigationMode.Once)
2230currentTabbingType = KeyboardNavigationMode.Contained;
2237if (!goDownOnly && currentTabbingType != KeyboardNavigationMode.Contained && GetParent(container) != null)
2287private DependencyObject GetPrevTabWithPrevIndex(DependencyObject e, DependencyObject container, KeyboardNavigationMode tabbingType)
2322if (tabbingType == KeyboardNavigationMode.Cycle && nextTabElement == null)
2328private DependencyObject GetPrevTabInGroup(DependencyObject e, DependencyObject container, KeyboardNavigationMode tabbingType)
2331if (tabbingType == KeyboardNavigationMode.None)
2340if (tabbingType == KeyboardNavigationMode.Once)
2360KeyboardNavigationMode tabbingType = GetKeyNavigationMode(container);
2372if (tabbingType == KeyboardNavigationMode.Once)
2393if (tabbingType == KeyboardNavigationMode.Once || tabbingType == KeyboardNavigationMode.None)
2413if (nextTabElement == container && tabbingType == KeyboardNavigationMode.Local)
2433if (tabbingType == KeyboardNavigationMode.Contained)
3005KeyboardNavigationMode mode = GetKeyNavigationMode(container);
3009if (mode == KeyboardNavigationMode.None && searchInsideContainer)
3027if (mode == KeyboardNavigationMode.Once && !searchInsideContainer)
3037case KeyboardNavigationMode.Cycle:
3040case KeyboardNavigationMode.Contained: