System.IO.MemoryStream ms = new System.IO.MemoryStream();
Image myImage3 = new Image();
BitmapImage bi3 = new BitmapImage();
bi3.BeginInit();
bi3.StreamSource = ms; //å°æµå¯¹è±¡ç»StreamSource
bi3.EndInit();
myImage3.Stretch = Stretch.Fill;
myImage3.Source = bi3;
温馨提示:答案为网友推荐,仅供参考