How to minimize Application window programmatically on UWP

十年热恋 提交于 2019-12-24 08:55:07

问题


How to minimize Application window programmatically on UWP, as if the user clicked on the minimize button on the app bar?

Let's say in my app user clicked a button to perform some processing, and now there's nothing left to do but wait until it finishes. In that case I would like to minimize my app automatically.

How to do that?

This is for C++ Windows Universal App.


回答1:


This is not supported today. Programmatic suspension is an item on our backlog that has not been scheduled/prioritized yet.

Please use UserVoice to submit and/or vote on the feature request. This existing item is probably the closest to your ask: https://wpdev.uservoice.com/forums/110705-universal-windows-platform/suggestions/18076333-allow-an-window-to-minimize-programatically

UPDATE
This is now possible, starting with Windows 10 build 1803: Minimize UWP programatically



来源:https://stackoverflow.com/questions/43883976/how-to-minimize-application-window-programmatically-on-uwp

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