可以的。WriteableBitmap这个类允许你把UI上任意的元素转换成一张图片。例如你要截图的元素名为stack,则以下代码:
WriteableBitmap wb = new WriteableBitmap(stack, null);
MemoryStream ms = new MemoryStream();
wb.SaveJpeg(ms, myWidth, myHeight, 0, 100);
保存到本地存储也没问题:
using (var isoFileStream = new IsolatedStorageFileStream("myPicture.jpg", FileMode.OpenOrCreate, IsolatedStorageFile.GetUserStoreForApplication()))
{
wb.SaveJpeg(isoFileStream, myWidth, myHeight, 0, 100);
}
更详细的请看这个帖子:http://stackoverflow.com/questions/6299978/uielement-to-image-file-wp7