string filename = "pack://application:,,,/res/headnv1.png"; 
this.headImage.Source = new BitmapImage(new Uri(filename, UriKind.Absolute));

 

WPF 中加载项目中的图片使用方法

有疑问加QQ群:786609441

相关文章:

  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
  • 2022-12-23
相关资源
相似解决方案