BitmapImage没有加载正确的引用和.dll

时间:2015-04-01 17:14:15

标签: c# wpf windows xaml

我正在尝试使用我的Windows Phone 8.1 Pivot应用程序中的BitmapImage,但无法使用System.Windows.Media.Imaging使其工作;使用正确的.dll

img1

img2

enter image description here

任何建议都会很棒,欢呼。

PS。尝试重建。

1 个答案:

答案 0 :(得分:1)

您当然希望使用Windows.UI.Xaml.Media.Imaging.BitmapImage,而不是System.Windows.Media.Imaging.BitmapImage

前者是用于Windows应用商店或Windows Phone应用的Windows运行时API的一部分,而后者是WPF。您无法在Windows应用商店或Windows Phone应用中使用WPF。