code_junkie

How do I determine an image loaded successfully from a URI in Silverlight 2.0 (RC0)?

Nov 11th, 2011
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. Image img = new Image();
  2. img.Source = new BitmapImage(new Uri("http://someURL/somefilename.jpg", UriKind.Absolute));
  3.  
  4. Error: Sys.InvalidOperationException: ImageError error #4001 in control 'Xaml1': AG_E_NETWORK_ERROR
Add Comment
Please, Sign In to add comment