title: Silverlight Dynamic Image Loading Problem
body: <p>I am creating a FlippingBook Silverlight application and I have run into a snag that I cannot seem to solve.</p>
  
  <p>The problem is with Asyncrously loaded Images. I have written a class that loads an image from a webaddress and stores it in a BitmapImage object.</p>
  
  <p>I bind to this image object to the Image Source on the silverlight image control.
  Now my Page and the Thumbnail both access the same ImageData Property that stores the images data.</p>
  
  <p>The thumbnails list is a listbox that have been styled to serves as a thumbnail viewer.</p>
  
  <p>Both the book and the listbox have same itemsource too, which is why the issues baffles me.</p>
  
  <p>Everything is working with the images being loaded in the background and updating the UI when they have been loaded... EXCEPT the first 3 (and always the first 3) items in the thumbnail listbox never show the imagedata.</p>
  
  <p>This is an image to illustrate the UI and problem:
  <a href="http://www.pcbuyersguide.co.za/picture.php?albumid=19&amp;pictureid=895" rel="nofollow noreferrer">alt text http://www.pcbuyersguide.co.za/picture.php?albumid=19&amp;pictureid=895</a></p>
  
  <p>Code Binding Image on Page:</p>
  
  <pre><code>    &lt;Image Source="{Binding ImageData}" Stretch="Fill" ImageFailed="Image_ImageFailed"/&gt;
  </code></pre>
  
  <p>Code Binding Image on Thumbnail(Styled ListboxItem):</p>
  
  <pre><code>    &lt;Image Stretch="Fill" Source="{Binding ImageData}"/&gt;
  </code></pre>
  
  <p>Property:</p>
  
  <pre><code>   public BitmapImage ImageData
      {
          get { return oImageData; }
          set
          {
              if (value != this.oImageData)
              {
                  this.oImageData = value;
                  NotifyPropertyChanged("ImageData");
              }
          }
      }
  </code></pre>
  
  <p>I have tested with images that take long to load and it is all working, but it's just these first 3 that are giving me hell. I don't understand as the items are bound and should effectively all be the same.</p>
  
  <p>The ItemSource is an observablecollection. I know I haven't given a great deal of information but I want to try and focus my question. If you need more info I will be happy to provide it.</p>
  
  <p>Any Help would be greatly appreciated.</p>