1

I need to use BitMapImage framework in my Windows Store Application. I need to create item in GridView and fill it by image. I know the following example:

Image img = new Image();
img.Source = new BitmapImage(new Uri(url));
imagesGrid.Items.Add(img);

But, when I'm trying to use BitmapImage, I can't. Visual Studio doesn't have this object. I think i need to import framework, so does someone know that?

4

1 回答 1

0

BitmapImage is in the Imaging namespace. You need to use this include:

using Windows.UI.Xaml.Media.Imaging;
于 2013-03-30T21:05:19.520 回答