In this example, the primary StackPanel (ContainerPrimary) has XYFocusKeyboardNavigation set to Enabled. XYFocusKeyboardNavigation enabled behavior Tab navigation is not affected, as all controls remain accessible through their tab order hierarchy. When set, navigation with the arrow keys is restricted to elements within the directional area. Set XYFocusKeyboardNavigation to Enabled to support 2D directional navigation to a control and each of its UIElement child objects. However, the B3 and B4 elements are in a secondary StackPanel (ContainerSecondary) with XYFocusKeyboardNavigation set to Disabled, which overrides the primary container and disables arrow key navigation to itself and between its child elements. All child elements inherit this setting, and can be navigated to with the arrow keys. XYFocusKeyboardNavigation disabled behavior Set XYFocusKeyboardNavigation to Disabled to block directional navigation to the control and its child elements. If all ancestors are in default mode (set to Auto), directional navigation with the keyboard is not supported. When set to Auto, directional navigation behavior is determined by the element’s ancestry, or inheritance hierarchy. See the UIElement.TabFocusNavigation and TabIndex properties for more detail on tabbing behavior for an element. To avoid a confusing navigation experience, we recommend that child elements of a directional area not be explicitly specified in the tab navigation order of your application. Tab order is not affected by this property. You can use the XYFocusKeyboardNavigation property (which has possible values of Auto, Enabled, or Disabled) to manage 2D inner navigation with the keyboard arrow keys. When focus shifts to this object, the keyboard arrow keys (left, right, up, and down) can be used to navigate between child elements within the directional area.ĢD Inner navigation region, or directional area, of a control group The 2D inner navigation region of a control, or control group, is referred to as its "directional area". The Engineering Software for Accessibility eBook has an excellent chapter on Designing the Logical Hierarchy.
0 Comments
Leave a Reply. |