0

Do I have to manually set the TabIndex property of each control on my page, or is there a way I can select multiple controls and get either Expression Blend or Visual Studio to apply the tab index in the order I selected them.

I know this is a feature of other UI tools, but it seems Blend / VS doesn't have this option. If I have a page with many fields that could change position or add a new fields in half way it takes a lot of effort for not much gain to manually update all the tab indexes.

h_a_z_
  • 109
  • 1
  • 11

2 Answers2

2

Why is the default tab order not sufficient? It's constructed from the ordering of the visual tree. Simply move your XAML around to create a different tab order; set IsTabStop to false to remove that control from the tab order.

Mike Post
  • 6,355
  • 3
  • 38
  • 48
  • unfortunately not, we have custom controls that wrap others, so I need the containing item to hold the tab focus, not the text box it holds, so the default doesn't work in this case. – h_a_z_ Oct 05 '11 at 18:28
  • Is default tab order calculated from XAML placement of your objects or compiled visual tree? I'm having same issue where I need to press twice for some objects to get focus. – Luke Feb 19 '12 at 22:36
  • The default order is what's listed in XAML or programmatically added to the container. – Mike Post Feb 20 '12 at 02:07
0

I was able to solve this by setting IsTabStop="False" on the container element.

Aaron D
  • 5,817
  • 1
  • 36
  • 51