问题
Anyone got a snip for grabbing a screenshot of your metro app using C#? Or C++? Or VB?
Thanks...
回答1:
No, there is no way for a Metro style app to do this. By design they cannot directly interact with other apps outside of themselves, including capturing screenshots which may include other apps. There also isn't a way for a Metro style app to render Xaml elements to a bitmap so you can't readily implement this for your own app. --Rob
More details are found here : MSDN Forum
I haven't test this solution but it might work if you try to let your app press the Window Key + PrintScreen and it should put the picture into the Pictures folder from there you can access the picture through Windows Integration (I think)
来源:https://stackoverflow.com/questions/11779095/how-to-capture-the-screen-in-a-metro-c-sharp-app