How to minimize only the main view in UWP

Jeong, Hyeonin (정현인_CoreSW) 21 Reputation points
2020-03-23T08:15:32.803+00:00

List item

Hi, I've implemented a UWP app with Secondary view(https://learn.microsoft.com/en-us/windows/uwp/design/layout/application-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)
0 comments No comments
{count} votes

Accepted answer
  1. Roy Li - MSFT 32,721 Reputation points Microsoft Vendor
    2020-03-23T09:00:38.237+00:00

    Hello,

    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.

    Thanks.


0 additional answers

Sort by: Most helpful