之前的Uri(@"/.../...", UriKind.Relative); 运行时会出错。

var imgbrush = new ImageBrush();
imgbrush.ImageSource = new BitmapImage(new Uri("ms-resource://StrokePr04/Images/image_sample_01.jpg"));

 

相关文章:

  • 2021-12-22
  • 2021-06-02
  • 2021-05-30
  • 2021-12-17
  • 2021-12-04
  • 2022-01-23
  • 2022-01-02
猜你喜欢
  • 2021-10-17
  • 2022-02-25
  • 2022-01-02
  • 2021-07-17
  • 2021-09-08
  • 2021-10-15
相关资源
相似解决方案