ApplicationView.PreferredLaunchViewSize ApplicationView.PreferredLaunchViewSize ApplicationView.PreferredLaunchViewSize ApplicationView.PreferredLaunchViewSize ApplicationView.PreferredLaunchViewSize Property

Definition

Gets or sets the size that the app launches with when the ApplicationView.PreferredLaunchWindowingMode property is set to PreferredLaunchViewSize, except in cases where the system manages the window size directly.

public : static Size PreferredLaunchViewSize { get; set; }
static Size PreferredLaunchViewSize();

static void PreferredLaunchViewSize(Size preferredlaunchviewsize);
public static Size PreferredLaunchViewSize { get; set; }
Public Shared ReadWrite Property PreferredLaunchViewSize As Size
var size = Windows.UI.ViewManagement.ApplicationView.preferredLaunchViewSize;
applicationView.preferredLaunchViewSize = size;

Property Value

The size that the app launches with when the ApplicationView.PreferredLaunchWindowingMode property is set to PreferredLaunchViewSize, except in cases where the system manages the window size directly.

Remarks

This property only has an effect when the app is launched on a desktop device that is not in Tablet mode.

For the very first launch of an app the PreferredLaunchWindowingMode will always be Auto and the ApplicationView.PreferredLaunchViewSize will be determined by system policies. The API applies to the next launch of the app.

See also