title: WPF ListBox bind ItemsSource with MVVM-light
body: <p>XAML</p>
  
  <pre><code>&lt;Window x:Class="Html5Mapper.Mapper.MainWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:wpt="http://schemas.xceed.com/wpf/xaml/toolkit"
      Title="HTML mapper" Height="300" Width="600" &gt;
  &lt;Window.DataContext&gt;
      &lt;Binding Path="Main" Source="{StaticResource Locator}"/&gt;
  &lt;/Window.DataContext&gt;
  
  &lt;ListBox Name="lbFiles" ItemsSource="{Binding Filescollection, Mode=OneWay}" Width="240" Height="220"&gt;
          &lt;ListBox.ItemTemplate&gt;
              &lt;DataTemplate&gt;
                  &lt;Grid Margin="0,2"&gt;
                      &lt;Grid.ColumnDefinitions&gt;
                          &lt;ColumnDefinition Width="*" /&gt;
                          &lt;ColumnDefinition Width="100" /&gt;
                      &lt;/Grid.ColumnDefinitions&gt;
                      &lt;Image Source="HTML.png" Height="40" Width="32" /&gt;
                      &lt;TextBlock Grid.Column="1" Text="{Binding Name}" /&gt;
                  &lt;/Grid&gt;
              &lt;/DataTemplate&gt;
          &lt;/ListBox.ItemTemplate&gt;
      &lt;/ListBox&gt;
  </code></pre>
  
  <p>MainViewModel.cs</p>
  
  <pre><code>public ObservableCollection&lt;Files&gt; Filescollection { get; set; }    
  public MainViewModel()
  {
      this.Filescollection = new ObservableCollection&lt;Files&gt;();
      SelectFilesAction();
  }
  
  private void SelectFilesAction()
  {
     this.Filescollection.Add(new Files { Name = "index.html", Path = "C:\\Files"});
     //lbFiles.ItemsSource = docs;
  }
  </code></pre>
  
  <p><strong>Q:</strong> What else do I need to get the <em>docs</em> object into the Listbox ?</p>