title: How to Scroll into selected item in listbox
body: <p>I am really confused with wp8 listbox scrolling. with below simple code I am scrolling to the selected index (item), but it doesn't work.</p>
  
  <pre><code>lsbReadingChapter.SelectionChanged -= lsbReadingChapter_SelectionChanged;
              _lastAyaSelectedIndex = startingAya;
              lsbReadingChapter.ItemsSource = null;
              lsbReadingChapter.ItemsSource = ds.getArabicTextWithTranslation(currentChapter);
              lsbReadingChapter.SelectedIndex = startingAya;
              lsbReadingChapter.UpdateLayout();
              lsbReadingChapter.ScrollIntoView(lsbReadingChapter.SelectedItem);
              lsbReadingChapter.SelectionChanged += lsbReadingChapter_SelectionChanged;
  </code></pre>
  
  <p>the selectedIndex is always greater than zero, but the listbox show the 1st item in the list and doesn't scroll.</p>
  
  <p>Here is my xaml</p>
  
  <pre><code>ListBox x:Name="lsbReadingChapter" HorizontalAlignment="Stretch" Grid.Row="1" ScrollViewer.VerticalScrollBarVisibility="Visible" Width="480" SelectionChanged="lsbReadingChapter_SelectionChanged" Loaded="lsbReadingChapter_Loaded"&gt;
              &lt;ListBox.ItemTemplate&gt;
                  &lt;DataTemplate&gt;
                      &lt;StackPanel HorizontalAlignment="Stretch" Width="480" Orientation="Vertical" Background="{Binding Converter={StaticResource AlternateRowConverter}}" &gt;
                          &lt;TextBlock Foreground="Black" Padding="20,0,30,0" TextWrapping="Wrap" HorizontalAlignment="{Binding HAlignment}" FontSize="{Binding ArabicFontSize}"&gt;
                              &lt;Run Text="{Binding Aya}"/&gt;
                              &lt;Run Text="{Binding AyaID, StringFormat=﴿\{0\}﴾}" Foreground="Blue" FontSize="30"/&gt;
                          &lt;/TextBlock&gt;
                          &lt;TextBlock Padding="20,0,30,0" Text="{Binding AyaTranslation}" Foreground="Black" FontSize="{Binding TranslationFontSize}" TextWrapping="Wrap" HorizontalAlignment="{Binding HAlignment}"/&gt;
                      &lt;/StackPanel&gt;
                  &lt;/DataTemplate&gt;
              &lt;/ListBox.ItemTemplate&gt;
          &lt;/ListBox&gt;
  </code></pre>
  
  <p>I don't know why it doesn't scroll to the selected index?</p>
  
  <p>Thanks!</p>