title: C# SilverLight. The tab key does not change focus for the text boxes
body: <p>I have got a little problem.</p>
  
  <p>I use ListBox control with the textboxes.</p>
  
  <p>I set focus on the first textbox and try to jump on the following textbox  by the key tab.
  It does not work.</p>
  
  <p>What do I wrong?</p>
  
  <p>Thanks in advance!</p>
  
  <pre><code>&lt;ListBox Name="Box" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Background="Transparent" BorderThickness="0"&gt;
              &lt;ListBox.ItemContainerStyle&gt;
                  &lt;Style TargetType="ListBoxItem"&gt;
                      &lt;Setter Property="Template"&gt;
                          &lt;Setter.Value&gt;
                              &lt;ControlTemplate&gt;
                                  &lt;StackPanel Orientation="Horizontal" Margin="40,2,0,2"&gt;
                                      &lt;TextBlock Text="{Binding Label}" MinWidth="20" /&gt;
                                      &lt;TextBox  TabIndex="{Binding Index, Mode=OneWay}" Text="{Binding Information, Mode=TwoWay}"/&gt;
                                  &lt;/StackPanel&gt;
                              &lt;/ControlTemplate&gt;
                          &lt;/Setter.Value&gt;
                      &lt;/Setter&gt;
                  &lt;/Style&gt;
              &lt;/ListBox.ItemContainerStyle&gt;
          &lt;/ListBox&gt;
  
  namespace SilverlightApplication1
  {
      public partial class MainPage : UserControl
      {
          public MainPage()
          {
              InitializeComponent();
  
              var model = new List&lt;Model&gt;()
              {
                  new Model() {Index = 1, Label = "1"},
                  new Model() {Index = 2, Label = "2"},
                  new Model() {Index = 3, Label = "3"},
                  new Model() {Index = 4, Label = "4"}
              };
  
              Box.ItemsSource = model;
  
  
          }
      }
  
  
      public class Model
      {
          public int Index { get; set; }
          public string Label { get; set; }
          public string Information { get; set; }
      }
  }
  </code></pre>