windows phone 7 - Create screenshot with app bar WP8 -


in application there possibility create screenshot of current view. implement writeablebitmap class. example:

var frame = application.current.rootvisual phoneapplicationframe;                writeablebitmap bitmap = new writeablebitmap(frame, null); bitmapimage result = new bitmapimage(); using (var stream = new memorystream()) {     bitmap.savejpeg(stream, (int)frame.actualwidth, (int)frame.actualheight, 0, 100);     result.setsource(stream); } 

the problem if on page, displaying, there application bar, doesn't display on saved image. ideas should issue?

application bar not part of app, so, can't that. way ask user make screenshot pressing windows+camera buttons.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -