Silverlight图片路径网址

时间:2019-07-03 13:34:02

标签: c# silverlight silverlight-4.0

我有一张图片

 <Image HorizontalAlignment="Stretch" Name="imgStylePic"
                   VerticalAlignment="Stretch"
                  Width="150"  Height="90"
                   Stretch="UniformToFill" />

我需要在后面的代码中更改图像源才能通过网络读取图像

我尝试过

 imgStylePic.Source = new BitmapImage(new Uri(@"\\192.168.1.14\Share\ALl\D and P\StylePicture\ORMP20TS057BA.jpg", UriKind.RelativeOrAbsolute));

但不起作用,这是什么问题

0 个答案:

没有答案