title: Event not fired after BitmapImage finishes loading file on hard drive
body: <p>I am loading an image to be shown on the screen and edited by the user, but I've run into a bit of a problem.</p>
  
  <p><code>BitmapImage</code> contains an event <code>DownloadCompleted</code> so I tried it, and it never gets fired. I suspect this is because the event <a href="http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.bitmapsource.downloadcompleted.aspx" rel="nofollow">only fires if the file is on the internet</a>:</p>
  
  <blockquote>
    <p>This event may not be raised for all types of bitmap content.</p>
  </blockquote>
  
  <p>I am rendering the bitmap to a <code>RenderTargetBitmap</code> afterwards, so I can't just set the <code>Image.Source</code> like I would normally.</p>
  
  <p>Is there any way to execute code only after the bitmap is finished loading (from the hard drive)?</p>
  
  <p>EDIT:</p>
  
  <p>I've just tested it a bit and found that the <code>BitmapImage</code> doesn't even start downloading the image until after my initialization method ends.</p>
  
  <p>EDIT:</p>
  
  <p>I've got it working by using the <code>Window.Activated</code> event, but I'm still open to better methods as this method is not such a good one.</p>