简体   繁体   中英

Switch running WinStore App to fullscreen

In Windows 8 Win Store apps started by default in full screen mode.

In Windows 10 Desktop Mode apps starts in windowed mode, and app title bar has additional icon, which allows to switch to full screen mode (first icon, note that it's different behavior than maximizing window, third icon).

Windows 10 Win Store标题栏

Is there a possibility to maximize this window programatically, eg via WinAPI call? Alternatively, is there any option (other than switching to Tablet Mode) to start it in full screen by default?

Question is not about changing app sources, I want to switch running app to full screen as a part of automated testing process.

Yes you can try to make the app runs in full screen by:

ApplicationView.GetForCurrentView().TryEnterFullScreenMode();

And try to play and check the methods available in ApplicationView.GetForCurrentView() .. You'll love it :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM