WPF Image Source 设置相对路径图片

时间:2018-08-14 18:49:20   收藏:0   阅读:1063

 

BitmapImage bt = new BitmapImage(new Uri("Images\\3_u10484.png", UriKind.Relative));
this.Img1.Source = bt;

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!