question

JeongHyeoninCoreSW-3477 avatar image
0 Votes"
JeongHyeoninCoreSW-3477 asked ·

How to minimize only the main view in UWP

List item

Hi, I've implemented a UWP app with Secondary view(https://docs.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();

windows-uwp
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RoyLi-MSFT avatar image
0 Votes"
RoyLi-MSFT answered ·

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.

· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I've got it :) Thanks

0 Votes 0 · ·