0

I want to Change the source of an Image programmatically.

I found that it's done with help of the class BitmapImage. The class is in System.Windows.Media.Imaging

But I don't have this package! I suppose I have to install something, but I don't know what and how. Searching also didn't help, I only find examples using this class, but not how to get the package. I'm using a fresh installation of Visual Studio Express 2012.

4

1 回答 1

0

System.Windows.Media.Imaging.BitmapImage是 WPF 的一部分,不能在 Windows 应用商店应用中使用。也许您正在寻找Windows.UI.Xaml.Media.Imaging.BitmapImage.

于 2012-11-25T18:58:55.970 回答