How to specify initial window size for Windows 8.1 app running on Windows 10

半世苍凉 提交于 2019-12-07 17:12:17

问题


Is it possible to set the default window size for a Windows 8.1 app running on 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.

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?


回答1:


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.



来源:https://stackoverflow.com/questions/33089337/how-to-specify-initial-window-size-for-windows-8-1-app-running-on-windows-10

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