WPF String formatting the contents of a list : <p>I have a list box which I populate with a list of type Foo, which contains the following properties: Name and ID.</p>

<p>I am binding it to a list box control. The problem is that I am getting "<strong>MyNamespace.Model.Foo</strong>" over an over in my list box. Is it possible for me to do extract the contents of my Foo list and display them in my view? How would I go doing something like that?</p>

<p>Here is where I am populating my list:</p>

<p>Window.Main:</p>

<pre><code>    void Load()
        {
          var result = my_model.GetData();

          foreach (var x in result)
          {
            Foo foo = new Foo{ Id = x.ID, Name = x.Name };
            ViewModel.Foo.Add(foo);

          }
        }
</code></pre>

<p>My View:</p>

<pre><code>&lt;ListBox x:Name="lbMyCollection" Grid.Column="1" Grid.Row="2"
               ItemsSource="{Binding Source={StaticResource Foo}}"&gt;        
      &lt;/ListBox&gt;
</code></pre>
