System\Windows\Input\KeyboardNavigation.cs (58)
208typeof(KeyboardNavigationMode),
210new FrameworkPropertyMetadata(KeyboardNavigationMode.Continue),
223typeof(KeyboardNavigationMode),
225new FrameworkPropertyMetadata(KeyboardNavigationMode.Continue),
238typeof(KeyboardNavigationMode),
240new FrameworkPropertyMetadata(KeyboardNavigationMode.Continue),
373public static void SetTabNavigation(DependencyObject element, KeyboardNavigationMode mode)
387public static KeyboardNavigationMode GetTabNavigation(DependencyObject element)
390return (KeyboardNavigationMode)element.GetValue(TabNavigationProperty);
399public static void SetControlTabNavigation(DependencyObject element, KeyboardNavigationMode mode)
413public static KeyboardNavigationMode GetControlTabNavigation(DependencyObject element)
416return (KeyboardNavigationMode)element.GetValue(ControlTabNavigationProperty);
425public static void SetDirectionalNavigation(DependencyObject element, KeyboardNavigationMode mode)
439public static KeyboardNavigationMode GetDirectionalNavigation(DependencyObject element)
442return (KeyboardNavigationMode)element.GetValue(DirectionalNavigationProperty);
472KeyboardNavigationMode value = (KeyboardNavigationMode)o;
473return value == KeyboardNavigationMode.Contained
474|| value == KeyboardNavigationMode.Continue
475|| value == KeyboardNavigationMode.Cycle
476|| value == KeyboardNavigationMode.None
477|| value == KeyboardNavigationMode.Once
478|| value == KeyboardNavigationMode.Local;
961if (GetKeyNavigationMode(container) == KeyboardNavigationMode.Once)
1144KeyboardNavigationMode mode = GetKeyNavigationMode(parent);
1145if (mode == KeyboardNavigationMode.Contained || mode == KeyboardNavigationMode.Cycle)
1924return GetKeyNavigationMode(e) != KeyboardNavigationMode.Continue;
1968private KeyboardNavigationMode GetKeyNavigationMode(DependencyObject e)
1970return (KeyboardNavigationMode)e.GetValue(_navigationProperty);
2025private DependencyObject GetNextTabWithNextIndex(DependencyObject e, DependencyObject container, KeyboardNavigationMode tabbingType)
2059if (tabbingType == KeyboardNavigationMode.Cycle && nextTabElement == null)
2065private DependencyObject GetNextTabInGroup(DependencyObject e, DependencyObject container, KeyboardNavigationMode tabbingType)
2068if (tabbingType == KeyboardNavigationMode.None)
2077if (tabbingType == KeyboardNavigationMode.Once)
2091KeyboardNavigationMode tabbingType = GetKeyNavigationMode(container);
2105if (tabbingType == KeyboardNavigationMode.Once || tabbingType == KeyboardNavigationMode.None)
2120KeyboardNavigationMode currentTabbingType = tabbingType;
2138if (currentTabbingType == KeyboardNavigationMode.Once)
2139currentTabbingType = KeyboardNavigationMode.Contained;
2146if (!goDownOnly && currentTabbingType != KeyboardNavigationMode.Contained && GetParent(container) != null)
2196private DependencyObject GetPrevTabWithPrevIndex(DependencyObject e, DependencyObject container, KeyboardNavigationMode tabbingType)
2231if (tabbingType == KeyboardNavigationMode.Cycle && nextTabElement == null)
2237private DependencyObject GetPrevTabInGroup(DependencyObject e, DependencyObject container, KeyboardNavigationMode tabbingType)
2240if (tabbingType == KeyboardNavigationMode.None)
2249if (tabbingType == KeyboardNavigationMode.Once)
2269KeyboardNavigationMode tabbingType = GetKeyNavigationMode(container);
2281if (tabbingType == KeyboardNavigationMode.Once)
2302if (tabbingType == KeyboardNavigationMode.Once || tabbingType == KeyboardNavigationMode.None)
2322if (nextTabElement == container && tabbingType == KeyboardNavigationMode.Local)
2342if (tabbingType == KeyboardNavigationMode.Contained)
2912KeyboardNavigationMode mode = GetKeyNavigationMode(container);
2916if (mode == KeyboardNavigationMode.None && searchInsideContainer)
2934if (mode == KeyboardNavigationMode.Once && !searchInsideContainer)
2944case KeyboardNavigationMode.Cycle:
2947case KeyboardNavigationMode.Contained: