我需要在我的Windows Store应用程序中使用BitMapImage框架。我需要在GridView中创建项目,并通过图像填充它。我知道下面的例子:
Image img = new Image();
img.Source = new BitmapImage(new Uri(url));
imagesGrid.Items.Add(img);但是,当我尝试使用BitmapImage时,我不能。Visual Studio没有这个对象。我想我需要导入框架,所以有人知道吗?
发布于 2013-03-31 05:05:20
BitmapImage位于Imaging命名空间中。您需要使用的代码包括:
using Windows.UI.Xaml.Media.Imaging;https://stackoverflow.com/questions/15723404
复制相似问题