这是我的代码,请让我知道解决方案。
var images = (from pd in SvarkWindow.prodlist where pd.Product_name.StartsWith(imgname) select pd.Image).ToList();
BitmapImage b = new BitmapImage();
b.BeginInit();
//b.UriSource = new Uri(images.ElementAtOrDefault(0), UriKind.Relative);
b.UriSource = new Uri("http://portal.liftech.in/presc/" + images.ElementAtOrDefault(0));
b.EndInit();
// ... Get Image reference from sender.
Image img1 = Productimage0 as Image;
img1.Source = b;