将 BitmapImage 指定给 Image 的 Source
Image img = new Image();
BitmapImage bitmap = new BitmapImage(new Uri("ms-appx:///Path-to-image-in-solution-directory", UriKind.Absolute));
img.Source = bitmap;
Image img = new Image();
BitmapImage bitmap = new BitmapImage(new Uri("ms-appx:///Path-to-image-in-solution-directory", UriKind.Absolute));
img.Source = bitmap;