title: Silverlight - dynamic binding of a listbox.ItemTemplate
body: <p>I have this:</p>
  
  <pre><code>&lt;ListBox x:Name="PART_lstAttributes" Grid.Row="1" Style="{StaticResource GlossyBlackListBox}"&gt;
    &lt;ListBox.ItemTemplate&gt;
      &lt;DataTemplate&gt;
         &lt;StackPanel&gt;
            &lt;TextBlock x:Name="txtAttributeName" Text="{Binding AttributeName}"&gt;&lt;/TextBlock&gt;
         &lt;/StackPanel&gt;
      &lt;/DataTemplate&gt;                                
    &lt;/ListBox.ItemTemplate&gt;
  &lt;/ListBox&gt;
  </code></pre>
  
  <p>Note that this one is binding to the "AttributeName" property of my collection. What I'd like to be able to do is programmatically change "AttributeName" to something else. Is this possible? </p>