System\Windows\Input\KeyboardNavigation.cs (58)
218typeof(KeyboardNavigationMode),
220new FrameworkPropertyMetadata(KeyboardNavigationMode.Continue),
233typeof(KeyboardNavigationMode),
235new FrameworkPropertyMetadata(KeyboardNavigationMode.Continue),
248typeof(KeyboardNavigationMode),
250new FrameworkPropertyMetadata(KeyboardNavigationMode.Continue),
383public static void SetTabNavigation(DependencyObject element, KeyboardNavigationMode mode)
397public static KeyboardNavigationMode GetTabNavigation(DependencyObject element)
400return (KeyboardNavigationMode)element.GetValue(TabNavigationProperty);
409public static void SetControlTabNavigation(DependencyObject element, KeyboardNavigationMode mode)
423public static KeyboardNavigationMode GetControlTabNavigation(DependencyObject element)
426return (KeyboardNavigationMode)element.GetValue(ControlTabNavigationProperty);
435public static void SetDirectionalNavigation(DependencyObject element, KeyboardNavigationMode mode)
449public static KeyboardNavigationMode GetDirectionalNavigation(DependencyObject element)
452return (KeyboardNavigationMode)element.GetValue(DirectionalNavigationProperty);
482KeyboardNavigationMode value = (KeyboardNavigationMode)o;
483return value == KeyboardNavigationMode.Contained
484|| value == KeyboardNavigationMode.Continue
485|| value == KeyboardNavigationMode.Cycle
486|| value == KeyboardNavigationMode.None
487|| value == KeyboardNavigationMode.Once
488|| value == KeyboardNavigationMode.Local;
967if (GetKeyNavigationMode(container) == KeyboardNavigationMode.Once)
1148KeyboardNavigationMode mode = GetKeyNavigationMode(parent);
1149if (mode == KeyboardNavigationMode.Contained || mode == KeyboardNavigationMode.Cycle)
1928return GetKeyNavigationMode(e) != KeyboardNavigationMode.Continue;
1972private KeyboardNavigationMode GetKeyNavigationMode(DependencyObject e)
1974return (KeyboardNavigationMode)e.GetValue(_navigationProperty);
2029private DependencyObject GetNextTabWithNextIndex(DependencyObject e, DependencyObject container, KeyboardNavigationMode tabbingType)
2063if (tabbingType == KeyboardNavigationMode.Cycle && nextTabElement == null)
2069private DependencyObject GetNextTabInGroup(DependencyObject e, DependencyObject container, KeyboardNavigationMode tabbingType)
2072if (tabbingType == KeyboardNavigationMode.None)
2081if (tabbingType == KeyboardNavigationMode.Once)
2095KeyboardNavigationMode tabbingType = GetKeyNavigationMode(container);
2109if (tabbingType == KeyboardNavigationMode.Once || tabbingType == KeyboardNavigationMode.None)
2124KeyboardNavigationMode currentTabbingType = tabbingType;
2142if (currentTabbingType == KeyboardNavigationMode.Once)
2143currentTabbingType = KeyboardNavigationMode.Contained;
2150if (!goDownOnly && currentTabbingType != KeyboardNavigationMode.Contained && GetParent(container) != null)
2200private DependencyObject GetPrevTabWithPrevIndex(DependencyObject e, DependencyObject container, KeyboardNavigationMode tabbingType)
2235if (tabbingType == KeyboardNavigationMode.Cycle && nextTabElement == null)
2241private DependencyObject GetPrevTabInGroup(DependencyObject e, DependencyObject container, KeyboardNavigationMode tabbingType)
2244if (tabbingType == KeyboardNavigationMode.None)
2253if (tabbingType == KeyboardNavigationMode.Once)
2273KeyboardNavigationMode tabbingType = GetKeyNavigationMode(container);
2285if (tabbingType == KeyboardNavigationMode.Once)
2306if (tabbingType == KeyboardNavigationMode.Once || tabbingType == KeyboardNavigationMode.None)
2326if (nextTabElement == container && tabbingType == KeyboardNavigationMode.Local)
2346if (tabbingType == KeyboardNavigationMode.Contained)
2916KeyboardNavigationMode mode = GetKeyNavigationMode(container);
2920if (mode == KeyboardNavigationMode.None && searchInsideContainer)
2938if (mode == KeyboardNavigationMode.Once && !searchInsideContainer)
2948case KeyboardNavigationMode.Cycle:
2951case KeyboardNavigationMode.Contained: