如何在 UWP 上以编程方式最小化应用程序窗口 [英] How to minimize Application window programmatically on UWP

查看:23
本文介绍了如何在 UWP 上以编程方式最小化应用程序窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 UWP 上以编程方式最小化应用程序窗口,就像用户点击了应用栏上的最小化按钮一样?

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.

怎么做?

这是用于 C++ Windows 通用应用程序.

This is for C++ Windows Universal App.

推荐答案

今天不支持.程序化暂停是我们积压工作中尚未安排/优先处理的项目.

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

请使用 UserVoice 提交和/或对功能请求进行投票.此现有项目可能最接近您的要求:https://wpdev.uservoice.com/forums/110705-universal-windows-platform/suggestions/18076333-allow-an-window-to-minimize-programatically

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

更新
现在可以了,从 Windows 10 build 1803 开始​​:以编程方式最小化 UWP

这篇关于如何在 UWP 上以编程方式最小化应用程序窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆