WPF Image Source 设置相对路径图片

 

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

 

posted @ 2018-08-14 18:10  紫晶城  阅读(1479)  评论(0编辑  收藏  举报