WPF Image Source 设置相对路径图片

mac2022-06-30  29

 

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

 

转载于:https://www.cnblogs.com/SeNaiTes/p/9476368.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)