How can we improve the Windows dev platform?

ApplicationView - Window Size improvements

ApplicationViewWindowingMode Enum

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();

currentAppView.SetDesiredBoundsMode(ApplicationViewBoundsMode.UseVisible);

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

* Maximize
* Minimize
* Dock window to left or right

10 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Hermit DaveHermit Dave shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base