img_backpic.Source = new BitmapImage(new Uri(path, UriKind.RelativeOrAbsolute));
标签:RelativeOrAbsolute,image,UriKind,后台,new,wpf From: https://www.cnblogs.com/fangxinliu/p/17015295.htmlUriKind有3种类型:RelativeOrAbsolute/Absolute/Relative,这里测试用了RelativeOrAbsolute,区别可能RelativeOrAbsolute解析时需要判断相对或绝对路径多了一个判断,不知道有没有其他区别