title: How can I get a row wise tab order in an ItemsControl with a datatemplate?
body: <p>I want the Tab go forward through each item in a row, and this for each row. But actually it goes through all items in a column, column after column!</p>
  
  <p>In the DataTemplate are 2 Comboboxes (let's say cb1 and cb1) and one TextBox (tb). The actual tab order is the following:</p>
  
  <p>Row0.cb1,
  Row1.cb1
  ...
  Row0.cb2,
  Row1.cb2
  ...
  Row0.tb,
  Row1.tb
  ...</p>
  
  <p>But what i want is:</p>
  
  <p>Row0.cb1,
  Row0.cb2,
  Row0.tb,
  Row1.cb1,
  Row1.cb2,
  Row1.tb
  ...</p>
  
  <pre><code>                            &lt;ItemsControl ItemsSource="{Binding}" Name="myItemsControl"&gt;
                                  &lt;ItemsControl.ItemTemplate&gt;
                                      &lt;DataTemplate&gt;
                                          &lt;Grid&gt;
                                              &lt;Grid.ColumnDefinitions&gt;
                                                  &lt;ColumnDefinition Width="3*"/&gt;
                                                  &lt;ColumnDefinition Width="*"/&gt;
                                                  &lt;ColumnDefinition Width="Auto"/&gt;
                                              &lt;/Grid.ColumnDefinitions&gt;
                                              &lt;Grid.RowDefinitions&gt;
                                                  &lt;RowDefinition Height="Auto"/&gt;
                                              &lt;/Grid.RowDefinitions&gt;
                                              &lt;ComboBox Grid.Column="0" ItemsSource="{Binding Source={StaticResource SomeItems}}" IsSynchronizedWithCurrentItem="False" SelectedItem="{Binding Path=SomeValue, Mode=TwoWay}" DisplayMemberPath="Name" TabIndex="20"/&gt;
                                              &lt;ComboBox Grid.Column="1" ItemsSource="{Binding Source={StaticResource SomeOtherItems}}" IsSynchronizedWithCurrentItem="False" SelectedItem="{Binding Path=SomeOtherValue, Mode=TwoWay}" DisplayMemberPath="Value" TabIndex="21"/&gt;
                                              &lt;TextBox HorizontalContentAlignment="Stretch" Grid.Column="2" TabIndex="22" LostKeyboardFocus="TextBox_FormatAfterLostFocus"&gt;
                                                  &lt;TextBox.Text&gt;
                                                      &lt;Binding Path="Wert" Mode="TwoWay" /&gt;
                                                  &lt;/TextBox.Text&gt;
                                              &lt;/TextBox&gt;
                                          &lt;/Grid&gt;
                                      &lt;/DataTemplate&gt;
                                  &lt;/ItemsControl.ItemTemplate&gt;
                              &lt;/ItemsControl&gt;
  </code></pre>