How to capture the screen in a Metro C# app

时光毁灭记忆、已成空白 提交于 2019-12-06 10:29:41

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!