System\Windows\Input\KeyboardNavigation.cs (58)
207typeof(KeyboardNavigationMode),
209new FrameworkPropertyMetadata(KeyboardNavigationMode.Continue),
222typeof(KeyboardNavigationMode),
224new FrameworkPropertyMetadata(KeyboardNavigationMode.Continue),
237typeof(KeyboardNavigationMode),
239new FrameworkPropertyMetadata(KeyboardNavigationMode.Continue),
372public static void SetTabNavigation(DependencyObject element, KeyboardNavigationMode mode)
386public static KeyboardNavigationMode GetTabNavigation(DependencyObject element)
389return (KeyboardNavigationMode)element.GetValue(TabNavigationProperty);
398public static void SetControlTabNavigation(DependencyObject element, KeyboardNavigationMode mode)
412public static KeyboardNavigationMode GetControlTabNavigation(DependencyObject element)
415return (KeyboardNavigationMode)element.GetValue(ControlTabNavigationProperty);
424public static void SetDirectionalNavigation(DependencyObject element, KeyboardNavigationMode mode)
438public static KeyboardNavigationMode GetDirectionalNavigation(DependencyObject element)
441return (KeyboardNavigationMode)element.GetValue(DirectionalNavigationProperty);
471KeyboardNavigationMode value = (KeyboardNavigationMode)o;
472return value == KeyboardNavigationMode.Contained
473|| value == KeyboardNavigationMode.Continue
474|| value == KeyboardNavigationMode.Cycle
475|| value == KeyboardNavigationMode.None
476|| value == KeyboardNavigationMode.Once
477|| value == KeyboardNavigationMode.Local;
956if (GetKeyNavigationMode(container) == KeyboardNavigationMode.Once)
1139KeyboardNavigationMode mode = GetKeyNavigationMode(parent);
1140if (mode == KeyboardNavigationMode.Contained || mode == KeyboardNavigationMode.Cycle)
1916return GetKeyNavigationMode(e) != KeyboardNavigationMode.Continue;
1960private KeyboardNavigationMode GetKeyNavigationMode(DependencyObject e)
1962return (KeyboardNavigationMode)e.GetValue(_navigationProperty);
2017private DependencyObject GetNextTabWithNextIndex(DependencyObject e, DependencyObject container, KeyboardNavigationMode tabbingType)
2051if (tabbingType == KeyboardNavigationMode.Cycle && nextTabElement == null)
2057private DependencyObject GetNextTabInGroup(DependencyObject e, DependencyObject container, KeyboardNavigationMode tabbingType)
2060if (tabbingType == KeyboardNavigationMode.None)
2069if (tabbingType == KeyboardNavigationMode.Once)
2083KeyboardNavigationMode tabbingType = GetKeyNavigationMode(container);
2097if (tabbingType == KeyboardNavigationMode.Once || tabbingType == KeyboardNavigationMode.None)
2112KeyboardNavigationMode currentTabbingType = tabbingType;
2130if (currentTabbingType == KeyboardNavigationMode.Once)
2131currentTabbingType = KeyboardNavigationMode.Contained;
2138if (!goDownOnly && currentTabbingType != KeyboardNavigationMode.Contained && GetParent(container) != null)
2188private DependencyObject GetPrevTabWithPrevIndex(DependencyObject e, DependencyObject container, KeyboardNavigationMode tabbingType)
2223if (tabbingType == KeyboardNavigationMode.Cycle && nextTabElement == null)
2229private DependencyObject GetPrevTabInGroup(DependencyObject e, DependencyObject container, KeyboardNavigationMode tabbingType)
2232if (tabbingType == KeyboardNavigationMode.None)
2241if (tabbingType == KeyboardNavigationMode.Once)
2261KeyboardNavigationMode tabbingType = GetKeyNavigationMode(container);
2273if (tabbingType == KeyboardNavigationMode.Once)
2294if (tabbingType == KeyboardNavigationMode.Once || tabbingType == KeyboardNavigationMode.None)
2314if (nextTabElement == container && tabbingType == KeyboardNavigationMode.Local)
2334if (tabbingType == KeyboardNavigationMode.Contained)
2900KeyboardNavigationMode mode = GetKeyNavigationMode(container);
2904if (mode == KeyboardNavigationMode.None && searchInsideContainer)
2922if (mode == KeyboardNavigationMode.Once && !searchInsideContainer)
2932case KeyboardNavigationMode.Cycle:
2935case KeyboardNavigationMode.Contained: