I try to set WPF image source from an Internet link. How can I do this? I tried this, but doesn't work:
Image image1 = new Image();
BitmapImage bi3 = new BitmapImage();
bi3.BeginInit();
bi3.UriSource = new Uri("link" + textBox2.Text + ".png", UriKind.Relative);
bi3.CacheOption = BitmapCacheOption.OnLoad;
bi3.EndInit();
Prepending
"link"
to the URL is certainly incorrect. Just make sure that you type the full path of your image into your textbox.