如何在桌面上运行时,在Windows 10的通用应用程序窗口最大化为全屏? [英] How to maximise a Windows 10 Universal Application's window to full screen when running on a desktop?

查看:186
本文介绍了如何在桌面上运行时,在Windows 10的通用应用程序窗口最大化为全屏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在构建使用Windows 10(或Windows 8.1的WinRT)一个普遍的应用,是有可能迫使应​​用程序的主窗口最大化推出?这显然​​是一个移动设备上运行时,但不是在桌面上运行时,应用程序自然行为

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.

这使用的WinForms当然是可能的:

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?

但我至今没有设法找到了在这个微软文档为Windows 10任何东西。

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

推荐答案

这是应用程序可以请求通过设置ApplicationView开始为全屏显示。<一个href=\"https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.viewmanagement.applicationview.$p$pferredlaunchwindowingmode.aspx\">$p$pferredLaunchWindowingMode到<一个href=\"https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.viewmanagement.applicationviewwindowingmode.aspx\">ApplicationViewWindowingMode.FullScreen

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

Roberth用在通用的Windows他建立会话导航和窗等观点和窗口大小问题一起讨论过这个应用

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

这篇关于如何在桌面上运行时,在Windows 10的通用应用程序窗口最大化为全屏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆