ApplicationView - Window Size improvements
For my work app, we wanted the app to launch maximised. The closet option is to launch it FullScreen but that obscures the task bar.
Auto give little control over the first launch of the app.
This meant that I ended up using PreferredLaunchViewSize during first launch and then Auto on subsequent launches.
This is what I am currently using
var currentAppView = ApplicationView.GetForCurrentView();
var di = Windows.Graphics.Display.DisplayInformation.GetForCurrentView();
var size = new Size(di.ScreenWidthInRawPixels, di.ScreenHeightInRawPixels);
size.Height -= 100;
size.Width -= 100;
ApplicationView.PreferredLaunchViewSize = size;
ApplicationView.PreferredLaunchWindowingMode = ViewModelLocator.AppSettingsInstance.WindowSizeSet ? ApplicationViewWindowingMode.Auto : ApplicationViewWindowingMode.PreferredLaunchViewSize;
ViewModelLocator.AppSettingsInstance.WindowSizeSet = true;
This seems a bad way to manage window size. Can we please improve the situation by adding missing API
* Dock window to left or right
Rafael Rivera commented
I'd like to add: Centering