WPF如何设置Image.Source为资源图片

img.Source = new BitmapImage(new Uri(path,UriKind.RelativeOrAbsolute));

原文地址:https://www.cnblogs.com/fan-yuan/p/10316334.html