My app shows an image on an absolute URL with this code:
So I said, in debug it works, and I can enjoy the picture but, from the debug or release or the web or the published folder the picture won't show.Code:ImageSource imgSrc = new BitmapImage(new Uri("http://designyoutrust.com/wp-content/uploads2/bla.jpg", UriKind.RelativeOrAbsolute)); Binding binding = new Binding(); binding.Source = imgSrc; binding.Mode = BindingMode.OneWay; DiaUserControl dia = new DiaUserControl(1); //my controls that has the image 'PhotoImage' dia.PhotoImage.SetBinding(Image.SourceProperty, binding);
No errors though, the app doesn't throw an exception of any kind.




Reply With Quote