WPF Image Source 设置相对路径图片

原文: WPF Image Source 设置相对路径图片

 

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

 

你可能感兴趣的:(WPF Image Source 设置相对路径图片)