title: XAML ListBox only shows class name
body: <p>How do I get my class properties to show up in the ListBox?</p>
  
  <p><strong>XAML:</strong></p>
  
  <pre><code>&lt;ListBox x:Name="lstPlayers" &gt;
       &lt;DataTemplate&gt;
            &lt;StackPanel Orientation="Horizontal"&gt;
                &lt;TextBlock Text="{Binding Player.FirstName}"&gt;&lt;/TextBlock&gt;
                &lt;TextBlock Text="{Binding Player.LastName}"&gt;&lt;/TextBlock&gt;
            &lt;/StackPanel&gt;
       &lt;/DataTemplate&gt;
  &lt;/ListBox&gt;
  </code></pre>
  
  <p><strong>C#:</strong></p>
  
  <pre><code>public class Player
  {
      string FirstName { get; set; }
      string LastName { get; set; }
  }
  
  
  public void LoadPlayers()
  {
      foreach (Player player in Players)
      {
           lstPlayers.Items.Add(player);
       }
  }
  </code></pre>
  
  <p>The only thing that shows up in the ListBox is </p>
  
  <pre><code>TestApplication1.Player
  </code></pre>