How to maximise a Windows 10 Universal Application's window to full screen when running on a desktop?

若如初见. 提交于 2019-12-18 16:49:56

问题


When building a universal application using Windows 10 (or Windows 8.1 WinRT), is it possible to force the application's main window to maximise on launch? This is obviously natural behaviour for the application when running on a mobile device but not when running on the desktop.

This is certainly possible using WinForms:

  • How do I make a WinForms app go Full Screen
  • How to display a Windows Form in full screen on top of the taskbar?

But I haven't so far managed to find anything in the Microsoft Documentation about this for Windows 10.


回答1:


An app can request to start as full screen by setting the ApplicationView.PreferredLaunchWindowingMode to ApplicationViewWindowingMode.FullScreen

Roberth discussed this along with other view and window size issues in his Build session Navigation and Windowing in Universal Windows Apps



来源:https://stackoverflow.com/questions/30936104/how-to-maximise-a-windows-10-universal-applications-window-to-full-screen-when

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!