在WPF中,为Image控件设置图片的后台代码有以下三种写法:
1.
imgContent.Source = new BitmapImage(new Uri("Content.jpg", UriKind.Relative));
2.
imgContent.Source =
在WPF中,为Image控件设置图片的后台代码有以下三种写法:
1.
imgContent.Source = new BitmapImage(new Uri("Content.jpg", UriKind.Relative));
2.
imgContent.Source =