我需要动态设置图像源,请注意我的图像在网络上的某个地方,这是我的代码
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 前缀