2014-07-04 27 views
0

我正在爲VS 2013中的Windows Phone 8.1編寫一個應用程序。 我想使用一個WriteableBitmap,它應該在System.Windows.Media.Imaging命名空間中。 但事實並非如此。 我沒有System.Windows.Media命名空間。 我無法添加參考。我有WP8應用程序嚮導添加了兩個引用:「.Net for Windows商店應用程序」和「Windows Phone 8.1」。如何將UIElement(Canvas)內容(兒童)轉換爲Windows Phone上的BitmapImage?

我錯過了什麼嗎?

+0

引用必須是.NET for Windows Phone,而不是Store! –

回答

0
Windows.UI.Xaml.Media.Imaging.WriteableBitmap 

您試圖在NEW XAML API's引用OLD SILVERLIGHT API's,通過使用Windows.UI.Xaml.Media.Imaging,你將能夠獲得在Windows Phone上的WriteableBitmap的類8.1 &知道更多這Link會幫助你。

希望這是你正在尋找。看看這是否有幫助。

相關問題