How to minimize only the main view in UWP

asked 2020-03-23T08:15:32.803+00:00

List item

Hi, I've implemented a UWP app with Secondary view(

And, I want to minimize the main view while a user is controlling the secondary view.

Can I minimize only the main view in UWP?

I found this code but it minimized all views...

IList<AppDiagnosticInfo> infos = await AppDiagnosticInfo.RequestInfoForAppAsync();

IList<AppResourceGroupInfo> resourceInfos = infos[0].GetResourceGroups();

await resourceInfos[0].StartSuspendAsync();

Universal Windows Platform (UWP)
No comments
{count} votes

Accepted answer
  1. answered 2020-03-23T09:00:38.237+00:00
    Roy Li - MSFT 26,311 Reputation points Microsoft Employee


    Welcome to Microsoft Q&A!

    The code you are using to minimize the UWP app, it actually suspends the UWP app so that the app will be minimized. It affects the whole app and that's why all views are minimized.

    >>Can I minimize only the main view in UWP?

    Currently, I'm sorry to say that there is no such way to minimize only one view of the UWP app. You could submit a feature request in the Feedback Hub about it. The Feedback Hub could be found in the Start Menu.


0 additional answers

Sort by: Most helpful