locked
WinRT - disable tab stop RRS feed

  • Question

  • I'm working on a WinRT application and I want to disable tab stops into certain controls.  However, it seems that IsTabStop doesn't work correctly.  This property works fine for textboxes, but not user controls.  Is there a different way to do it?  Thanks.

    Wednesday, April 17, 2013 6:33 PM

Answers

  • UserControls by default cannot be tabbed to. Are you trying to prevent tabbing into controls within the UserControl? If so you will need to block the interior controls individually.

    What is the specific use case here? Why are you trying tab stops? Is this a transient state? Would disabling the control (which you can do to the UserControl) be more appropriate?

    Be careful when fiddling with tab order: make sure you end up so that the user can get to all controls appropriately. One of the common accessibility problems we've noticed is apps with illogical or impossible tab orders.

    --Rob

    Wednesday, April 17, 2013 7:14 PM
    Moderator

All replies

  • UserControls by default cannot be tabbed to. Are you trying to prevent tabbing into controls within the UserControl? If so you will need to block the interior controls individually.

    What is the specific use case here? Why are you trying tab stops? Is this a transient state? Would disabling the control (which you can do to the UserControl) be more appropriate?

    Be careful when fiddling with tab order: make sure you end up so that the user can get to all controls appropriately. One of the common accessibility problems we've noticed is apps with illogical or impossible tab orders.

    --Rob

    Wednesday, April 17, 2013 7:14 PM
    Moderator
  • Hi Rob, thanks for the reply.  Basically we have a view with textboxes and user controls.  When we run the app on the desktop, we have to use the keyboard for input and we just want the tab key to only hit textboxes, not other controls.  What happens now is that as the user hits tab, the other non-textbox controls are being tabbed into and there's no indication of where the current position is.  We can't disable the user controls since they provide functionality for the view (opens a camera).
    Wednesday, April 17, 2013 8:01 PM