title: XamlParseException when binding to listbox
body: <p>In my app I am allowing users to save photos from camera and photo library to isolated storage.  I then get the name of each file and read the photo and add to my list.  Once the list is built, I bind it to the list box.</p>
  
  <p>I can get about 5 displayed without a problem.  After I scroll I get the exception:</p>
  
  <pre><code>System.Windows.Markup.XamlParseException occurred
    Message= [Line: 0 Position: 0]
     --- Inner Exception ---
  KeyNotFoundException
  </code></pre>
  
  <p>This is my XAML:</p>
  
  <pre><code>&lt;ListBox x:Name="userPhotosListBox"&gt;
      &lt;ListBox.ItemTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;StackPanel x:Name="DataTemplateStackPanel" Orientation="Horizontal"&gt;
                  &lt;ContentControl Content="{Binding Image}" Width="400" /&gt;
                  &lt;Image Name="{Binding FileName}" Source="/Images/appbar.delete.rest.png" Width="48" Height="48"
                      MouseLeftButtonUp="Image_MouseLeftButtonUp" VerticalAlignment="Center" HorizontalAlignment="Center" MaxWidth="48" MaxHeight="48" /&gt;
              &lt;/StackPanel&gt;
          &lt;/DataTemplate&gt;
      &lt;/ListBox.ItemTemplate&gt;
  &lt;/ListBox&gt;
  </code></pre>
  
  <p>This is the code:</p>
  
  <pre><code>using (var store = IsolatedStorageFile.GetUserStoreForApplication())
  {
      var userFiles = store.GetFileNames();
      foreach (var userFile in userFiles)
      {
          if (userFile.Contains(PhotoInIsolatedStoragePrefix))
          {
              var currentBitmap = ReadBitmapImageFromIso(userFile);
              var userPhotoImage = new Image { Source = currentBitmap };
              var userImg = new Img(userPhotoImage, userFile);
              userPhotosListBox.Items.Add(userImg);
          }
      }
  }
  
  public class Img
  {
      public Img(Image img, string fileName) 
      { 
          this.Image = img;
          this.FileName = fileName;
      }
      public Image Image { get; set; }
      public string FileName { get; set; }
  }
  </code></pre>
  
  <p>Very new to WP7 development and confused as to why my code partially works.</p>