我需要动态设置图像源,请注意我的形象在网络上的某个地方,这里是我的代码更改图像源的背后 - WPF
BitmapImage logo = new BitmapImage();
logo.BeginInit();
logo.UriSource = new Uri(@"pack://application:,,,\\myserver\\folder1\\Customer Data\\sample.png");
logo.EndInit(); // Getting the exception here
ImageViewer1.Source = logo;
例外:
的无法识别URI前缀
你并不需要,如果你使用原义字符串 – 2010-09-24 13:08:33