7

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:

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

Community
  • 1
  • 1
Gordonium
  • 3,389
  • 23
  • 39
  • 1
    As a user, I don't think I wish an application to be able to do this.... – Ian Ringrose Jun 19 '15 at 10:42
  • @IanRingrose I completely agree. However, in this instance the application that I'm creating appears very briefly and is for a very niche instance of face detection. It's a rare example where this might actually need to happen. – Gordonium Jun 19 '15 at 10:46
  • I don't know if such a feature will be available in windows 10. But in windows 8.1 I don't think it's possible. The user is the one who chooses if the application is snapped or not – Corcus Jun 19 '15 at 12:21
  • I've not tried yet, but this may be help for you: [ApplicationView.TryEnterFullScreenMode | tryEnterFullScreenMode method](https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.viewmanagement.applicationview.tryenterfullscreenmode.aspx) – Mamoru Satoh Jun 22 '15 at 06:34

1 Answers1

9

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

Rob Caplan - MSFT
  • 21,714
  • 3
  • 32
  • 54
  • 1
    Is there an option to somehow hint Windows to run Windows 8.1 store app to run fullscreen on Windows 10? Since this API is only available for Windows 10 apps and we have existing 8.1 app that we would like to run fullscreen by default without having to worry about 'porting' it to Windows 10. – Adrian Lis Jan 25 '16 at 12:12