title: Silverlight ListBox always highlights first item upon selection
body: <p>I have a ListBox being populated in code.  Each item is a simple text/url combination and when an item is selected, it should redirect to the selected item's URL.  That is working as expected, but I'm having an issue with the selection of the item in the ListBox.  It seems that no matter which item you selected, the first item in the ListBox is being highlighted each time.  You are still taken to the correct item, but it's highlighting the wrong one.  Any idea?</p>
  
  <p>Edit: This is a problem in IE8, but works as expected in FF3.</p>
  
  <p>Edit: Adding sample code.  HeadlineData is a custom class, just basically to hold data to be displayed.</p>
  
  <pre><code>&lt;Canvas x:Name="HeadlineCanvas"&gt;
      &lt;ListBox x:Name="HeadlineListBox" Width="260" Height="380"  BorderBrush="Gainsboro" BorderThickness="1" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Hidden"&gt;
          &lt;ListBox.ItemTemplate&gt;
              &lt;DataTemplate&gt;
                  &lt;StackPanel Orientation="Vertical"&gt;
                      &lt;HyperlinkButton MinHeight="20" MaxHeight="40" Width="240" NavigateUri="{Binding Url}" IsTabStop="False"&gt;
                          &lt;TextBlock TextWrapping="Wrap" Text="{Binding Title}"/&gt;
                      &lt;/HyperlinkButton&gt;
                  &lt;/StackPanel&gt;
              &lt;/DataTemplate&gt;
          &lt;/ListBox.ItemTemplate&gt;
      &lt;/ListBox&gt;
  &lt;/Canvas&gt;
  </code></pre>
  
  <p>C# Code</p>
  
  <pre><code>public partial class MainPage : UserControl
  {
      public MainPage()
      {
          InitializeComponent();
  
          HeadlineData hd = new HeadlineData();
          hd.Title = "Title 1";
          hd.HeadlineNewsTitle = "Title 1";
          hd.LastModifiedTime = DateTime.Now;
          hd.Url = "http://www.google.com";
  
          this.HeadlineListBox.Items.Add(hd);
  
          hd = new HeadlineData();
          hd.Title = "Title 2";
          hd.HeadlineNewsTitle = "Title 2";
          hd.LastModifiedTime = DateTime.Now;
          hd.Url = "http://www.google.com";
  
          this.HeadlineListBox.Items.Add(hd);
      }
  }
  </code></pre>