您可以使用图像的Source属性。试试这个代码…
ImageSource imageSource = new BitmapImage(new Uri("C:\FileName.gif"));image1.Source = imageSource;
上一篇 如何在app.config中创建自定义配置部分?[重复]
下一篇 如何在ASP.NET MVC中展平通过JsonResult返回的ExpandoObject?
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号