以下是C#中的写法。
BitmapImage imagetemp = new BitmapImage(new Uri("E:\\Work\\Demo2.bmp", UriKind.Absolute));
image1.Source = imagetemp;以下是C#中的写法。
BitmapImage imagetemp = new BitmapImage(new Uri("E:\\Work\\Demo2.bmp", UriKind.Absolute));
image1.Source = imagetemp;