如何指定为Windows 8.1的应用程序初始窗口的大小在Windows 10上运行,

如何指定为Windows 8.1的应用程序初始窗口的大小在Windows 10上运行,

问题描述:

是否可以设置默认窗口大小在Windows 10运行Windows 8.1的应用程序?

Is it possible to set the default window size for a Windows 8.1 app running on Windows 10?

我知道,这可使用的API UWS应用程序来完成在Windows 10,但是引入,应用程序转换到Windows 10需要一定的时间。

I know that this can be done for a UWS app using APIs introduced in Windows 10. However, converting the app to Windows 10 will take some time.

在此期间,我希望能够释放速战速决这将确保当前的Windows 8.1的应用程序具有正确大小启动。

In the meantime, I would like to be able to release a quick fix which would ensure that current Windows 8.1 app launches with the correct size.

有谁知道如何实现这一目标?

Does anyone know how to achieve this?

您可以使用反射在运行时10 SDK在Windows中调用Windows的一部分8.1应用程序。
看看托马斯·尼格罗的博客,他这样做的VLC WinRT的应用程序。

You could use reflection to call part of windows 10 sdk at runtime within your windows 8.1 app. Take a look at Thomas Nigro blog, he does that for the vlc winrt app.