I\'m writing an application for Windows Phone 8.1.
I need to save an UIElement as an image file (I\'d prefer JPG or PNG). I\'m using RenderTargetBitmap class to do this.
This is available on Windows Phone 8.1, but it not available on WP 8.0. (see MSDN link)
You need to make sure that you include the appropriate namespace however so it is found by the compiler:
using System.Runtime.InteropServices.WindowsRuntime