Check if image has been loaded
Hello i have this code:
BitmapImage image = new BitmapImage(new Uri(contact.PreviewPhoto,
UriKind.Relative));
a.photo.Source = image;
contact.PreviewPhoto="https://files.test.lv/public/photos/h66/38B83D35-15B5-4872-8CE5-F3E50001E921.jpg";
How can i determine if image has been loaded?
Because sometimes internet connection can get lost, or the link is blank,
how to replace it in that case?
No comments:
Post a Comment